mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #15430 from charleswhchan/patch-2
Cleanup "Working with containers" page.
This commit is contained in:
commit
5ab6883b92
1 changed files with 22 additions and 17 deletions
|
@ -11,11 +11,11 @@ parent="smn_containers"
|
||||||
# Working with containers
|
# Working with containers
|
||||||
|
|
||||||
In the [last section of the Docker User Guide](/userguide/dockerizing)
|
In the [last section of the Docker User Guide](/userguide/dockerizing)
|
||||||
we launched our first containers. We launched two containers using the
|
we launched our first containers. We launched containers using the
|
||||||
`docker run` command.
|
`docker run` command:
|
||||||
|
|
||||||
* Containers we ran interactively in the foreground.
|
* Interactive container runs in the foreground.
|
||||||
* One container we ran daemonized in the background.
|
* Daemonized container runs in the background.
|
||||||
|
|
||||||
In the process we learned about several Docker commands:
|
In the process we learned about several Docker commands:
|
||||||
|
|
||||||
|
@ -44,16 +44,21 @@ This command will not only provide you the version of Docker client and
|
||||||
daemon you are using, but also the version of Go (the programming
|
daemon you are using, but also the version of Go (the programming
|
||||||
language powering Docker).
|
language powering Docker).
|
||||||
|
|
||||||
Client version: 0.8.0
|
Client:
|
||||||
Go version (client): go1.2
|
Version: 1.8.1
|
||||||
|
API version: 1.20
|
||||||
|
Go version: go1.4.2
|
||||||
|
Git commit: d12ea79
|
||||||
|
Built: Thu Aug 13 02:35:49 UTC 2015
|
||||||
|
OS/Arch: linux/amd64
|
||||||
|
|
||||||
Git commit (client): cc3a8c8
|
Server:
|
||||||
Server version: 0.8.0
|
Version: 1.8.1
|
||||||
|
API version: 1.20
|
||||||
Git commit (server): cc3a8c8
|
Go version: go1.4.2
|
||||||
Go version (server): go1.2
|
Git commit: d12ea79
|
||||||
|
Built: Thu Aug 13 02:35:49 UTC 2015
|
||||||
Last stable version: 0.8.0
|
OS/Arch: linux/amd64
|
||||||
|
|
||||||
## Get Docker command help
|
## Get Docker command help
|
||||||
|
|
||||||
|
@ -218,8 +223,8 @@ the container.
|
||||||
## Inspecting our web application container
|
## Inspecting our web application container
|
||||||
|
|
||||||
Lastly, we can take a low-level dive into our Docker container using the
|
Lastly, we can take a low-level dive into our Docker container using the
|
||||||
`docker inspect` command. It returns a JSON hash of useful configuration
|
`docker inspect` command. It returns a JSON document containing useful
|
||||||
and status information about Docker containers.
|
configuration and status information for the specified container.
|
||||||
|
|
||||||
$ docker inspect nostalgic_morse
|
$ docker inspect nostalgic_morse
|
||||||
|
|
||||||
|
@ -296,7 +301,7 @@ this again by stopping the container first.
|
||||||
And now our container is stopped and deleted.
|
And now our container is stopped and deleted.
|
||||||
|
|
||||||
> **Note:**
|
> **Note:**
|
||||||
> Always remember that deleting a container is final!
|
> Always remember that removing a container is final!
|
||||||
|
|
||||||
# Next steps
|
# Next steps
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue