Symbolic Link Host to Docker Container

10,769

Solution 1

For further investigation about this question. I would like to notify that I've "solved" my issue with the same approach than @Kai Hofstetter in the following post: How to mount a directory in the docker container to the host?

Solution 2

Sounds like you're trying to optimize a Maven build running inside a container?

docker run -it --rm -w /opt/maven \
   -v $PWD:/opt/maven \
   -v $HOME/.m2:/root/.m2 \
   maven:3.3-jdk-8 \
   mvn clean install

Example

Share:
10,769
Bevilaqua
Author by

Bevilaqua

A young java programmer.

Updated on July 29, 2022

Comments