Docker: Volume
Docker commands:
docker ps: To show all the running containers in docker
docker build <path> -t <image_name>: It creates the image from the Dockerfile in the current folder.
docker run -it <image_name or image id>: It start the container
Volume is the storage outside the container. It is used to share the data among different containers at runtime.
Docker Volume commands
- docker volume list
- docker volume create <volume_name>
All the volumes are stored at /var/lib/docker/volumes/_data
Comments
Post a Comment