Categories
Docker Microsoft PowerShell

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

You run one of the following PowerShell commands to remove a container

Remove-NavContainer ###

or

docker rm ###

but you receive the following error message:

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

with the result that you are unable to stop, kill or remove the Docker container. Even a restart does not fix this issue.

Solution 1:

  1. Run the PowerShell command net stop docker to stop docker-engine (Note all containers will stop)
  2. Delete the folder in C:\Programdata\docker\containers whose name starts with the ID from the error message (###)
  3. Run the PowerShell command net start docker to start docker-engine

Solution 2:

Restart the machine will restart docker-engine if it the service is set up to start Automatically.

Did my solution solve your problem? Leave a reply.

Categories
Azure DevOps Docker Dynamics NAV Microsoft

docker : error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/version: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

Solution:
Open PowerShell as Administrator and run the following command

net start docker

Did my solution solve your problem? Leave a reply.