docker Flashcards
What is a volume
A volume is stored on the host filesystem at a specific folder location. Choose a folder where you know the data won’t be modified by non-Docker processes.
docker volume create
Volumes also don’t get removed automatically when a container stops using the volume.
What is a bind mount?
A bind mount is conceptually the same as a volume; however, instead of using a specific folder, you can mount any file or folder on the host.
What is the bridge network?
The bridge network is the default configuration applied to containers when launched without specifying any other network configuration. This network is an internal, private network used by the container, and it isolates the container network from the Docker host network.
By default, Docker doesn’t publish any container ports. To enable port mapping between the container ports and the Docker host ports, use the Docker port –publish flag.
–publish 8080:80