Docker Community Forums

Share and learn in the Docker community.

Docker-compose down doesn't remove images

(Ram Gopinathan) #1

I’m finding that docker-compose down only kills running containers and removes running containers but leaves images. Per documentation container images are supposed to be removed as well. Is this a known issue?

(Alexandre) #2


As per documentation:

By default, the only things removed are:

• Containers for services defined in the Compose file
• Networks defined in the networks section of the Compose file
• The default network, if one is used

If you want to remove image, use the --rmi 'all' flag

Hope this helps.

(Ram Gopinathan) #3

Oops thanks not sure how i missed that :slight_smile: Cheers