50 Docker 101
Docker images and containers can use a huge amount of storage space. It’s important to remove old images preriodically.
50.1 Configuration
Note
Docker runs as a daemon and more information is available at https://docs.docker.com/config/daemon/.
First, stop the Docker daemon:
sudo systemctl stop docker
The configuration file is /etc/docker/daemon.json
.
Last, start the Docker daemon:
sudo systemctl start docker
sudo systemctl enable docker
50.2 Remove all resources
Note
This can take a lot of time.
docker system prune --force --all
50.3 Access log
50.3.1 Windows Subsystem for Linux (WSL)
The log files are under C:\Users\username\AppData\Local\Docker
where username
is your user name.