With the below command:
docker container run -dit --name testcontainer –mount source= ubervol, target=/vol alpine:latest
source mount point name is ubervol
pointing to target /vol
that resides within container as shown below:
user@machine:~$ docker container exec -it b4fd sh
/ # pwd
/
/ # ls vol
vol
ubervol
sits outside the container in /var/lib/docker/volumes/ubervol
path of host machine(hosting docker daemon)
With the below Dockerfile:
# Create the folders and volume mount points
RUN mkdir -p /var/log/jenkins
RUN chown -R jenkins:jenkins /var/log/jenkins
RUN mkdir -p /var/jenkins_home
RUN chown -R jenkins:jenkins /var/jenkins_home
VOLUME ["/var/log/jenkins", "/var/jenkins_home"]
my understanding is, target is sitting within container with path /var/log/jenkins
&& /var/jenkins_home
What is the source mount point name? for each target(/var/log/jenkins
&& /var/jenkins_home
)
What is the path of this mount point name in host machine?