Explorar o código

Merge pull request #11210 from xuhdev/patch-1

Update doc: "docker create" must specify a command
Michael Crosby %!s(int64=10) %!d(string=hai) anos
pai
achega
e6b18cb66d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/sources/userguide/dockervolumes.md

+ 1 - 1
docs/sources/userguide/dockervolumes.md

@@ -124,7 +124,7 @@ Let's create a new named container with a volume to share.
 While this container doesn't run an application, it reuses the `training/postgres`
 While this container doesn't run an application, it reuses the `training/postgres`
 image so that all containers are using layers in common, saving disk space.
 image so that all containers are using layers in common, saving disk space.
 
 
-    $ sudo docker create -v /dbdata --name dbdata training/postgres
+    $ sudo docker create -v /dbdata --name dbdata training/postgres /bin/true
 
 
 You can then use the `--volumes-from` flag to mount the `/dbdata` volume in another container.
 You can then use the `--volumes-from` flag to mount the `/dbdata` volume in another container.