1

I want to remove a container, the removal takes too long

sudo docker rm -f container_name

When I re-ran the command I got:

Error response from daemon: removal of container container_name is already in progress

The environment I am using:

  • Docker version: 17.05.0-ce
  • Ubuntu version: 16.04
John Kugelman
  • 349,597
  • 67
  • 533
  • 578
ghazouan badr
  • 472
  • 5
  • 16

1 Answers1

1

after restarting docker daemon, I can remove the container.

sudo service docker restart

sudo docker rm -f container_name

ghazouan badr
  • 472
  • 5
  • 16
  • Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. - [From Review](/review/low-quality-posts/24546810) – shyam Nov 11 '19 at 12:35
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/24546810) – Willie Cheng Nov 11 '19 at 15:04
  • @shyam if my answer lacks additional information, please refer to what kind of infos – ghazouan badr Nov 13 '19 at 09:19
  • @WillieCheng docker daemon stucks, so it cannot remove the container, this answer resolved the issue for me – ghazouan badr Nov 13 '19 at 09:24