Use `docker container create` instead of `docker run` (#5667)

In this context, I think `docker container create` is more suitable and more respectful to the new syntax and better analogy with `docker network create` and `docker volume create`
This commit is contained in:
mouhamed 2018-01-05 19:59:15 +01:00 committed by Misty Stanley-Jones
parent c5be668e29
commit 9a2141cf78
1 changed files with 2 additions and 2 deletions

View File

@ -160,10 +160,10 @@ They both work.
A service definition contains configuration which will be applied to each
container started for that service, much like passing command-line parameters to
`docker run`. Likewise, network and volume definitions are analogous to
`docker container create`. Likewise, network and volume definitions are analogous to
`docker network create` and `docker volume create`.
As with `docker run`, options specified in the Dockerfile (e.g., `CMD`,
As with `docker container create`, options specified in the Dockerfile (e.g., `CMD`,
`EXPOSE`, `VOLUME`, `ENV`) are respected by default - you don't need to
specify them again in `docker-compose.yml`.