// No space left on device
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker rmi $(docker images | grep '^<none>' | awk '{print $3}')
// Rebuild image
$ docker-compose up --build
// Stop and remove all images
$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
Useful docker && docker-compose commands
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.