Docker prune stuck in "a prune operation is already running"

Martin Mika picture Martin Mika · Feb 28, 2018 · Viewed 11.5k times · Source

I run command docker system prune yesterday, it took some time and then my SSH session was disconnected from different reason.

Unfortunately I am getting now:

Error response from daemon: a prune operation is already running.

Obviously there is a lock and prune command is not running anymore.

Does anybody know how remove the lock without stopping and removing all containers?

EDIT: Created an issue in repo: https://github.com/moby/moby/issues/36447

Answer

Bhavani picture Bhavani · Aug 8, 2018

Restarting docker worked for me.