🪴 notes

Search

Search IconIcon to open search

docker

Published May 5, 2023 Last updated Aug 10, 2023 Edit Source

website

Docker is a tool that makes setting up environments for software to run on any platform reliably. It does this by packaging the source code along with all its dependencies defined in a Dockerfile.

Multiple docker images can be used to create multi-container applications using docker-compose.

src kill all running containers:

1
$ docker kill $(docker ps -q)

remove exited containers:

1
$ docker rm $(docker ps -a -f status=exited -q)

delete all images

1
$ docker rmi $(docker images -a -q)