Merge pull request #2218 from londoncalling/engine-get-started

changed rm images example to rmi
This commit is contained in:
Victoria Bialas 2017-03-08 20:42:56 -08:00 committed by GitHub
commit e8db147df2
1 changed files with 17 additions and 15 deletions

View File

@ -125,16 +125,18 @@ locally.
In the next step, you will remove both versions of the `docker-whale` image
from your local system. They share the same ID. Make a note of it.
3. Use the `docker image rm` command to remove the images. You can refer
3. Use the `docker rmi` command to remove the images. You can refer
to an image by its ID or its name. Since they share an ID, if you wanted to
keep one of them, you'd need to refer to the other one by name. For this
example, use the ID to remove both of them. Your ID will be different from
the one below.
```bash
$ docker image rm -f 7d9495d03763
$ docker rmi -f 7d9495d03763
```
>**Tip:** You can also remove an image with `docker image rm -f` followed by image ID or name in a similar fashion.
4. When you use `docker run` it automatically downloads (pulls) images that
don't yet exist locally, creates a container, and starts it. Use the
following command to pull and run the `docker-whale` image, substituting