Skip to content

Commit a632b45

Browse files
committed
Changed the order of the cleanup - it is impossible to remove secrets while being used by services
1 parent 5e4165a commit a632b45

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

security/secrets/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -268,20 +268,20 @@ the secret from memory.
268268
In this step you will remove all secrets and services,as well as clean up any other artifacts created in this lab.
269269

270270

271-
1. Remove all secrets on the host.
271+
1. Remove all services on the host.
272272

273-
This command will remove **all** secrets on your Docker host. Only perform this step if you know you will not use these secrets again.
273+
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.
274274

275275
```
276-
$ docker secret rm $(docker secret ls -q)
276+
$ docker service rm $(docker service ls -q)
277277
<Snip>
278278
```
279-
2. Remove all services on the host.
279+
2. Remove all secrets on the host.
280280

281-
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.
281+
This command will remove **all** secrets on your Docker host. Only perform this step if you know you will not use these secrets again.
282282

283283
```
284-
$ docker service rm $(docker service ls -q)
284+
$ docker secret rm $(docker secret ls -q)
285285
<Snip>
286286
```
287287

0 commit comments

Comments
 (0)