Cannot delete old docker images

(Tom Hsiung) #1
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
discourse/base        2.0.20180404        b0df25258662        6 days ago          1.77GB
local_discourse/app   latest              b2ecbebb18e9        6 weeks ago         2.88GB
discourse/base        2.0.20171231        3925ef3919cc        3 months ago        1.73GB

When I tried to delete the old image, I got

Error response from daemon: conflict: unable to delete 3925ef3919cc (cannot be forced) - image has dependent child images

(Jeff Atwood) #2

Use the ./launcher cleanup command:

The following command will
- Delete all docker images for old containers
- Delete all stopped and orphan containers

Are you sure (Y/n):

Starting Cleanup (bytes free 414111852)
Finished Cleanup (bytes free 418603452)