Favor docker <object> <verb> format of commands (#5914)
Remove instances of: - docker rmi - docker images - docker stop - docker rm - docker create - docker exec - docker attach
This commit is contained in:
parent
f1fb06838a
commit
09d8e4bd93
3 changed files with 9 additions and 9 deletions
|
@ -75,17 +75,17 @@ as `my-ubuntu`, then pushes it to the local registry. Finally, the
|
||||||
|
|
||||||
## Stop a local registry
|
## Stop a local registry
|
||||||
|
|
||||||
To stop the registry, use the same `docker stop` command as with any other
|
To stop the registry, use the same `docker container stop` command as with any other
|
||||||
container.
|
container.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker stop registry
|
$ docker container stop registry
|
||||||
```
|
```
|
||||||
|
|
||||||
To remove the container, use `docker rm`.
|
To remove the container, use `docker container rm`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker stop registry && docker rm -v registry
|
$ docker container stop registry && docker container rm -v registry
|
||||||
```
|
```
|
||||||
|
|
||||||
## Basic configuration
|
## Basic configuration
|
||||||
|
@ -204,7 +204,7 @@ If you have been issued an _intermediate_ certificate instead, see
|
||||||
2. Stop the registry if it is currently running.
|
2. Stop the registry if it is currently running.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker stop registry
|
$ docker container stop registry
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Restart the registry, directing it to use the TLS certificate. This command
|
3. Restart the registry, directing it to use the TLS certificate. This command
|
||||||
|
@ -415,7 +415,7 @@ secrets.
|
||||||
2. Stop the registry.
|
2. Stop the registry.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker stop registry
|
$ docker container stop registry
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Start the registry with basic authentication.
|
3. Start the registry with basic authentication.
|
||||||
|
|
|
@ -56,7 +56,7 @@ Pull (or build) some image from the hub
|
||||||
|
|
||||||
Tag the image so that it points to your registry
|
Tag the image so that it points to your registry
|
||||||
|
|
||||||
docker tag ubuntu localhost:5000/myfirstimage
|
docker image tag ubuntu localhost:5000/myfirstimage
|
||||||
|
|
||||||
Push it
|
Push it
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ Pull it back
|
||||||
|
|
||||||
Now stop your registry and remove all data
|
Now stop your registry and remove all data
|
||||||
|
|
||||||
docker stop registry && docker rm -v registry
|
docker container stop registry && docker container rm -v registry
|
||||||
|
|
||||||
## Next
|
## Next
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ At this point, it's assumed that:
|
||||||
* you have installed Docker Compose
|
* you have installed Docker Compose
|
||||||
* it's HIGHLY recommended that you get a certificate from a known CA instead of self-signed certificates
|
* it's HIGHLY recommended that you get a certificate from a known CA instead of self-signed certificates
|
||||||
* inside the current directory, you have a X509 `domain.crt` and `domain.key`, for the CN `myregistrydomain.com`
|
* inside the current directory, you have a X509 `domain.crt` and `domain.key`, for the CN `myregistrydomain.com`
|
||||||
* be sure you have stopped and removed any previously running registry (typically `docker stop registry && docker rm -v registry`)
|
* be sure you have stopped and removed any previously running registry (typically `docker container stop registry && docker container rm -v registry`)
|
||||||
|
|
||||||
## The List
|
## The List
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue