Difference between revisions of "Docker Volumes"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
  
 
* <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> [[docker run]] [[--name]] some-[[mariadb]] [[-v]] /my/own/datadir:[[/var/lib/mysql]] [[-e]] MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest</code>
 +
 +
* cd /var/lib/docker/volumes/<volume_name>/_data
 +
  
 
== Related terms ==
 
== Related terms ==

Revision as of 13:50, 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

Activitites

See also

Advertising: