Skip to content

Commit

Permalink
Changed the order of the cleanup - it is impossible to remove secrets…
Browse files Browse the repository at this point in the history
… while being used by services
  • Loading branch information
royeectu committed Apr 30, 2017
1 parent 5e4165a commit a632b45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions security/secrets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,20 @@ the secret from memory.
In this step you will remove all secrets and services,as well as clean up any other artifacts created in this lab.


1. Remove all secrets on the host.
1. Remove all services on the host.

This command will remove **all** secrets on your Docker host. Only perform this step if you know you will not use these secrets again.
This command will remove **all** services on your Docker host. Only perform this step if you know you know you do not need any of the services running on your system.

```
$ docker secret rm $(docker secret ls -q)
$ docker service rm $(docker service ls -q)
<Snip>
```
2. Remove all services on the host.
2. Remove all secrets on the host.

This command will remove **all** services on your Docker host. Only perform this step if you know you know you do not need any of the services running on your system.
This command will remove **all** secrets on your Docker host. Only perform this step if you know you will not use these secrets again.

```
$ docker service rm $(docker service ls -q)
$ docker secret rm $(docker secret ls -q)
<Snip>
```

Expand Down

0 comments on commit a632b45

Please sign in to comment.