Docker-Volume
In Docker, a "volume" is a way to persist data or share data between containers and the host system. Volumes are used to store and manage data that needs to be preserved beyond the life of a single container. They provide a means for storing data independently of containers, making it easier to manage and share data across containers.
Here are some key points about Docker volumes:
Data Persistence
Isolation
Mounting
Host and Container Paths
Volume Types
Docker Network
In Docker, a "network" is a crucial feature that allows containers to communicate with each other and with external networks. Docker provides various networking options to facilitate container-to-container communication and connect containers to the host and the outside world. These networking options include bridge networks, host networks, overlay networks, and macvlan networks, among others.
Here are some key concepts and components related to Docker networking:
Bridge Networks
Host Network
Overlay Network
Macvlan Network
Custom Networks
Today's Task:-
Learn how to use Docker Volumes and Named Volumes to share files and directories between multiple containers.
Create two or more containers that read and write data to the same volume using the
docker run --mount
command.Verify that the data is the same in all containers by using the docker exec command to run commands inside each container.
Day 19 of #90daysofDevOps
Thanks for reading
Follow me for more about DevOps♾️........
________________________________________________________________________________
#90daysHardChallenge
#Cloudcomputing
#DevOps
#Python
#TrainWithShubham