-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docker-commands): renamed & moved things arround
- Loading branch information
Showing
2 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
DevOps/Infrastructure-Solutions/Container/Docker/docker commands.md
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
DevOps/Infrastructure-Solutions/Container/Docker/docker-commands.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Docker commands | ||
|
||
## Stop things | ||
|
||
### Stop all containers | ||
|
||
```bash | ||
docker stop $(docker ps -aq) | ||
``` | ||
|
||
## Remove things | ||
|
||
### Remove all containers | ||
|
||
```bash | ||
docker rm $(docker ps -aq) | ||
``` | ||
|
||
### Remove & stop all containers | ||
|
||
```bash | ||
docker rm -f $(docker ps -aq) | ||
``` | ||
|
||
### All Images | ||
|
||
```bash | ||
docker rmi $(docker images -q) | ||
``` |