Difference between revisions of "Docker Volumes"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Draft}}
+
* https://docs.docker.com/storage/volumes/
  
/var/lib/docker/volumes
+
* [[Docker local volumes]]
  
  
 +
* <code>[[/var/lib/docker/]]volumes/metadata.db</code>
  
 
{{docker volumes}}
 
{{docker volumes}}
Line 9: Line 10:
  
  
  docker container inspect grafana  | grep -w Volumes
+
  [[docker container inspect]] grafana  | grep -w Volumes
 
           "Volumes": null,
 
           "Volumes": null,
  
Line 15: Line 16:
 
             "Volumes": null,
 
             "Volumes": null,
 
             "Volumes": null,
 
             "Volumes": null,
 +
 +
* <code> [[docker run]] [[--name]] some-[[mariadb]] [[-v]] /my/own/datadir:[[/var/lib/mysql]] [[-e]] MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest</code>
 +
 +
 +
 +
* <code>cd /var/lib/docker/volumes/<volume_name>/_data</code>
  
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[docker system df]] -v</code> (-v show also volume information)
 
* <code>[[docker system df]] -v</code> (-v show also volume information)
 +
* [[docker buildx du]]
 
* [[Docker images management]]: <code>[[docker images]]</code>
 
* [[Docker images management]]: <code>[[docker images]]</code>
 
* [[Docker-compose: volumes]]
 
* [[Docker-compose: volumes]]
 
* <code>[[docker run]] -v .../...</code>
 
* <code>[[docker run]] -v .../...</code>
 
* [[bind mounts]]
 
* [[bind mounts]]
 +
* <code>[[docker inspect]]</code>
 +
* <code>[[Dockerfile]]</code>
 +
* <code>[[podman volume]]</code>
 +
* <code>[[--mount]]</code>
  
 
== Activitites ==
 
== Activitites ==
* Read Introduction to Docker Bind Mounts and Volumes https://4sysops.com/archives/introduction-to-docker-bind-mounts-and-volumes/
+
* 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 ==
 
== See also ==

Latest revision as of 13:51, 25 October 2024




docker container inspect grafana  | grep -w Volumes
          "Volumes": null,
docker image inspect grafana/grafana | grep -w Volumes
           "Volumes": null,
           "Volumes": null,


  • cd /var/lib/docker/volumes/<volume_name>/_data


Related terms[edit]

Activitites[edit]

See also[edit]

Advertising: