December 2019
Beginner to intermediate
770 pages
16h 14m
English
With volumes, you have a way to map folders on your Docker host to your container, for example, to give it access to binaries or other files it needs to run your solution.
If you are not using volumes and you remove a container, all the changes you make to the filesystem inside the container will be lost because they will have been removed, along with the container.
Volumes are set using the -v parameter, followed by the path of your host, a colon, and the path inside your container. If you want to map the c:\data\containersfolder on your host to c:\temp inside of the container, you would write the following command:
-v c:\data\containers:c:\temp
Read now
Unlock full access