Articles → DOCKER → Mount A Volume To The Docker Container
Mount A Volume To The Docker Container
Purpose Of Mounting A Volume
Prerequisite
Command
docker run -d --name=<container name> --mount source=<volume>,destination=<path inside container> <image name>
Click to Enlarge
Check If The Volume Is Mounted Correctly
docker inspect <container name>
Click to Enlarge