Closed donaldmurf closed 2 months ago
I updated the command from: docker run -it --rm -v /code:/myCode docker.cc.cert.org/redemption/distrib bash
to:
docker run -it --rm -v /
Example:
docker run -it --rm -v /opt/myCode/:/host/host_code/ docker.cc.cert.org/redemption/distrib bash
The picture shows a new dir called "host_code" in the docker container along with my host files being mounted
Had to do another push because I had it has /home/host_code when it needs to be /host/host_code
WRT Docker volumnes, you should use -v ./code:/myCode, or -v ${PWD}/code:/myCode. Specifying "/code" as the path to mount is an absolute path to "/code" on your host, which is not what you wanted.
BTW I just found the part of the README that uses "-v /code". I've fixed it.
The current docker command is:
docker run -it --rm -v /code:/myCode docker.cc.cert.org/redemption/distrib bash
lets say I have code I want to repair in /opt/myCode/
According to the README the command should be:
docker run -it --rm -v /code:/opt/myCode docker.cc.cert.org/redemption/distrib bash
This should mount /opt/myCode from my host into the redemption docker container in /host/codeIn this screenshot you can see that /host/code doesn't contain the files from my host drive and there isn't a /code dir. Also a myCode dir doesn't exist.