18
loading...
This website collects cookies to deliver better user experience
docker run --volume LOCAL-PATH:CONTAINER PATH
This command maps the local directory into the container. Here, we can also specify the permissions, such as (here) ro for read-only, etc.
docker run -v /home/username/project:/app:ro
docker run -v $(pwd):/opt/project
docker run -mount type=bind, source="($pwd)",target=/opt/project
docker run --volume VOLUME-NAME:CONTAINER-PATH
docker run -v project-dat:/app
docker run --mount source=mysql-data,target=/var/lib//my-sql
docker run
command, that is used to start up the running container, by the use of a feature with docker called volumes.For learning more about docker-volumes, refer to -> here .
For more learning about kubernetes-volume, refer to -> here
Read the docs:
-> Docker
-> Kubernetes
Informative Websites:
-> Data On Kubernetes
-> Civo-Learn
Also read-> Beginner's guide to Docker, for getting a brief introduction on what is Docker and how it works.
18