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?
rprakashg (Ram Gopinathan) #1
aleveille (Alexandre) #2
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.
rprakashg (Ram Gopinathan) #3
Oops thanks not sure how i missed that Cheers