docker: fix first heading
This commit is contained in:
parent
e548524ad1
commit
ff8f02c2cb
12
docker.md
12
docker.md
|
@ -7,23 +7,25 @@ layout: 2017/sheet
|
||||||
Manage images
|
Manage images
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
### Managing images
|
### `docker build`
|
||||||
|
|
||||||
Create an `image` from a Dockerfile:
|
|
||||||
{: .-setup}
|
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
docker build [options] .
|
docker build [options] .
|
||||||
-t "app/container_name" # name
|
-t "app/container_name" # name
|
||||||
```
|
```
|
||||||
|
|
||||||
Run a command in an `image`:
|
Create an `image` from a Dockerfile.
|
||||||
|
|
||||||
|
|
||||||
|
### `docker run`
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
docker run [options] IMAGE
|
docker run [options] IMAGE
|
||||||
# see `docker create` for options
|
# see `docker create` for options
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Run a command in an `image`.
|
||||||
|
|
||||||
Manage containers
|
Manage containers
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue