When I'm trying to remove a volume I get this error:
Error response from daemon: remove myvol: volume is in use -
[2a177cb40a405db9f245fccd776dcdeacc d266ad624daf7cff510c9a1a1716fe]
But both docker ps
and docker container ls
return an empty list.
I've tried restarting the docker deamon.
I use Docker Toolbox on Windows 10.
try to delete all stopped containers:
docker rm -f $(dcoker ps -a -q)
then delete the volume
you can see stopped container using docker ps -a
using docker ps
will return only running containers
EDIT since you are on Windows
list stopped containers:
docker ps -a
delete the stopped container - you need to replace CONATINER_ID with your real ones -:
docker rm -f CONATINER_ID_1 CONATAINER_ID_2