2020-03-21 09:24:35 +00:00
|
|
|
# Docker
|
|
|
|
|
|
|
|
Assume you use Archlinux.
|
|
|
|
|
|
|
|
Read [Docker](https://wiki.archlinux.org/index.php/Docker).
|
|
|
|
|
2020-03-31 07:46:58 +00:00
|
|
|
Start/enable service:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
systemctl start docker.service
|
|
|
|
|
|
|
|
systemctl enable docker.service
|
|
|
|
```
|
|
|
|
|
|
|
|
Add your user to `docker` group:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo usermod -aG docker $USER
|
|
|
|
```
|
2020-03-21 09:24:35 +00:00
|
|
|
|
|
|
|
Delete all images, containers, volumes, and networks that are not associated with a container (dangling):
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker system prune
|
|
|
|
```
|