# check disk size
df -h
docker run --rm alpine df -h

# remove stopped container, unused images, unused volumes
docker rm $(docker ps -q -f 'status=exited')
docker rmi $(docker images -q -f 'dangling=true')
docker volume rm $(docker volume ls -q -f 'dangling=true')

# check disk size again
df -h
docker run --rm alpine df -h

Leave a Reply

Your email address will not be published. Required fields are marked *