|
@ -129,6 +129,8 @@ Parameters |
|
|
|
|
|
|
|
|
== Volumes |
|
|
== Volumes |
|
|
|
|
|
|
|
|
|
|
|
=== create |
|
|
|
|
|
|
|
|
Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. |
|
|
Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. |
|
|
|
|
|
|
|
|
[source,sh] |
|
|
[source,sh] |
|
@ -136,6 +138,47 @@ Volumes are the preferred mechanism for persisting data generated by and used by |
|
|
docker run -d --name mycontainer -v /var/www/html:/var/html nginx:latest |
|
|
docker run -d --name mycontainer -v /var/www/html:/var/html nginx:latest |
|
|
---- |
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
=== list |
|
|
|
|
|
|
|
|
|
|
|
[source,sh] |
|
|
|
|
|
---- |
|
|
|
|
|
docker volume ls |
|
|
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
== Inspect |
|
|
|
|
|
|
|
|
|
|
|
Low-level information on Docker objects |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== images |
|
|
|
|
|
|
|
|
|
|
|
[source,sh] |
|
|
|
|
|
---- |
|
|
|
|
|
docker ps IMAGE ID |
|
|
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
=== container |
|
|
|
|
|
|
|
|
|
|
|
[source,sh] |
|
|
|
|
|
---- |
|
|
|
|
|
docker ps CONTAINER ID |
|
|
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
=== network |
|
|
|
|
|
|
|
|
|
|
|
[source,sh] |
|
|
|
|
|
---- |
|
|
|
|
|
docker ps NETWORK ID |
|
|
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
=== volume |
|
|
|
|
|
|
|
|
|
|
|
[source,sh] |
|
|
|
|
|
---- |
|
|
|
|
|
docker ps VOLUME ID |
|
|
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
== repositories |
|
|
== repositories |
|
|
|
|
|
|
|
|