New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containeri is staing in state " Removal In Progress" for 12 weeks #3434

Closed
yuklia opened this Issue May 9, 2016 · 12 comments

Comments

Projects
None yet
@yuklia
Copy link

yuklia commented May 9, 2016

docker ps --all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                PORTS               NAMES
9adaaacc30d3        3d93fd21072f        "/bin/bash"         12 weeks ago        Removal In Progress                       9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_9adaaacc30_web
$ docker info
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 35
Server Version: 1.11.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 146
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge null host
Kernel Version: 3.19.0-58-generic
Operating System: Ubuntu 14.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 11.65 GiB
Name: yuklia
ID: X2GJ:JAQ3:MU3L:44E6:5O45:LHAY:RLRR:FQ25:PZ55:3SDP:KPY5:BQ6H
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Username: yuklia
Registry: https://index.docker.io/v1/

docker rm -f 9adaaacc30d3 makes no sense

@yuklia yuklia changed the title Container stayed in state " Removal In Progress" for 12 weeks Containeri is staing in state " Removal In Progress" for 12 weeks May 9, 2016

@liamawhite

This comment has been minimized.

Copy link

liamawhite commented May 9, 2016

have you tried forcing removal?

docker rm -f 9adaaacc30d3

@yuklia

This comment has been minimized.

Copy link

yuklia commented May 10, 2016

@liamawhite yes, it doesn't help

@shin-

This comment has been minimized.

Copy link
Contributor

shin- commented May 10, 2016

Hm, I don't think this is a docker-compose issue. However, the way I would proceed is

  1. Stop the docker daemon (sudo service docker stop)
  2. Remove the remaining container files sudo rm -rf /var/lib/docker/containers/9adaaacc30d3<TAB>
  3. Start the docker daemon (sudo service docker start).

HTH

@shin-

This comment has been minimized.

Copy link
Contributor

shin- commented May 23, 2016

I'm closing this issue now, if you're still experiencing trouble feel free to comment again.

@shin- shin- closed this May 23, 2016

@shahmaulikn

This comment has been minimized.

Copy link

shahmaulikn commented Jun 5, 2017

I have created Cronjob for removing docker containers, I found same "Removal in Progress" .

@karanp24

This comment has been minimized.

Copy link

karanp24 commented Oct 3, 2017

I am facing this same issue in docker 17.09-ce , when I manually try to remove the container i get the folllowing error
Error response from daemon: unable to remove filesystem for 872a4f65532abd823760e8bdce43c614bc171570b8d6cf3264c3deb274cf01b5: remove /var/lib/docker/containers/872a4f65532abd823760e8bdce43c614bc171570b8d6cf3264c3deb274cf01b5/shm: device or resource busy
If the daemon is restarted then these exited/Removal In Progress containers disappear.As this is my production system I cant take chance of restarting daemon again and again. Any suggestions how can we overcome this behavior.

@r2p2

This comment has been minimized.

Copy link

r2p2 commented Mar 4, 2018

Same here, this issue should not stay closed. Docker version 18.02.0-ce.

@dogrod

This comment has been minimized.

Copy link

dogrod commented Mar 5, 2018

Same problem, it confused me for a long time, please fix it. docker version 17.12.0-ce.

@Irytacja

This comment has been minimized.

Copy link

Irytacja commented Jun 29, 2018

18.05.0-ce
Cannot force remove container from /var/liv/docker/containers neither remove it with force remove via docker rm -f

@xu-song

This comment has been minimized.

Copy link

xu-song commented Sep 30, 2018

+1

root@11:~# systemctl stop docker
root@11:~# rm -rf /var/lib/docker/containers/f0e2078...5/
rm: cannot remove '/var/lib/docker/containers/f0e...5/mounts/shm': 
Device or resource busy
@FritschAuctores

This comment has been minimized.

Copy link

FritschAuctores commented Nov 12, 2018

It also works this
docker rmi $(docker images -a -q) -f
docker rm $(docker ps -a -f status=exited -q)
restart docker

use it careful !

@rahman13dec4u

This comment has been minimized.

Copy link

rahman13dec4u commented Nov 19, 2018

same issue in latest stable version of docker-ce..this is causing a lots of issue now...whenever we are deleting a container it goes in "Removal In Progress" and only option to fix is to reboot the server..even manual docker service stop hangs.

Can someone please let us know the solution or when can this be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment