Home > Net >  Using bind mount in Docker (Ubuntu 20.04)
Using bind mount in Docker (Ubuntu 20.04)

Time:04-27

I am really new to Linux and Docker, and i want to not rebuild docker image after every change of my code. I read, that you can use bind mount, but i can't understand it's syntax and usage. My Python files with Dockerfile is located at /etc/python-docker

CodePudding user response:

You can mount your python files inside the container with the -v flag.

docker run -v /etc/python-docker:/path/inside/the/container image-name

  • Related