Why cannot erase an image uploaded in my computer?

Hi,

I’ve uploaded the following image:

docker pull kalilinux/kali-linux-docker

But strangely:

  • I cannot finish the pull operation (donwload in progress stays forever)

  • some images are present on local but cannot be erased:

    $ docker images
    REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
    e3177c843499 6 weeks ago 420.2 MB
    $ docker rmi e3177c843499
    Error response from daemon: Conflict, cannot delete because e3177c843499 is held by an ongoing pull or build
    Error: failed to remove images: [e3177c843499]

I’ve tried to wait a full day, restart from clean docker install with removing ‘/var/lib/docker’, nothing seems to work.

Hi,

Did you try a force remove?

docker rmi -f e3177c843499

Regards