And:
For an common real situation: I want use maven in Pod ( jenkins k8s plugin ).
The image java
contains jdk, And image maven
contains maven only which mean no jdk in it.
Question: Without copy file by share volume, Can you stack container files ( like docker build process ), or access files in another container ?
Reason:
If I use many different java version and both oracle / openjdk, I may be need create more then 100 combination with maven 3.6~3.8.
And if there are somthing more need stack over java & maven things will lose controll very fast.
apiVersion: v1
kind: Pod
spec:
containers:
- name: java
image: xxxxxx/library/java-jdk:17.0.5
- name: maven
image: xxxxx/library/maven:3.8.6