Difference between revisions of "Docker Volumes"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
* https://docs.docker.com/storage/volumes/ | * https://docs.docker.com/storage/volumes/ | ||
+ | |||
+ | * [[Docker local volumes]] | ||
+ | |||
* <code>[[/var/lib/docker/]]volumes/metadata.db</code> | * <code>[[/var/lib/docker/]]volumes/metadata.db</code> |
Revision as of 09:44, 12 May 2023
/var/lib/docker/volumes/metadata.db
docker volume create --name VOLUME_NAME
docker volume ls
: https://docs.docker.com/engine/reference/commandline/volume_ls/docker volume rm VOLUME_NAME
docker volume
: https://docs.docker.com/engine/reference/commandline/volume/docker volume inspect VOLUME
: https://docs.docker.com/engine/reference/commandline/volume_inspect/docker inspect -f '{{ .Mounts }}' CONTAINER_NAME
docker volumes prune
docker system prune --volumes
docker container inspect grafana | grep -w Volumes "Volumes": null,
docker image inspect grafana/grafana | grep -w Volumes "Volumes": null, "Volumes": null,
docker run --name some-mariadb -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest
Related terms
docker system df -v
(-v show also volume information)- Docker images management:
docker images
- Docker-compose: volumes
docker run -v .../...
- bind mounts
docker inspect
Dockerfile
podman volume
Activitites
- Read Introduction to Docker Bind Mounts and Volumes https://4sysops.com/archives/introduction-to-docker-bind-mounts-and-volumes/
- Read https://docs.docker.com/storage/volumes/
See also
- Docker Volumes:
docker volume ls
,docker volume create
,docker volume inspect
,docker volumes prune
,docker volume create
,docker volume rm
,docker system df
,mounts
,--volumes-from
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: