How to: Error response from daemon: Bad response from Docker engine
Error: response from daemon: Bad response from Docker engine
When you run docker commands you may have encountered the error “ERROR: Error response from daemon: Bad response from Docker engine” sometimes on Windows and Linux OS when running the docker desktop.
For example,
Workaround
- Check if the docker desktop is running. If the docker desktop is running, check if the docker desktop service is running.
for Windows OS, you can check the docker-desktop service using,
Get-Service "Docker Desktop Service"
To start the docker desktop service on the windows run the below command.
Start-Service "Docker Desktop Service" -Verbose
For Ubuntu OS, check the service with the below command
systemctl status docker
If the service is not running, then start the docker service using
sudo systemctl start docker
2. Run “docker info” command to check if you are getting the same error. If yes then restart the docker engine.
for Windows OS, you can select the docker icon on the right side bottom menu and click restart.
or run the below command,
Restart-Service "Docker Desktop Service"
For Ubuntu, you need to stop and start the docker service.
sudo systemctl stop docker
sudo systemctl start docker
or restart directly using,
sudo systemctl restart docker
3. Other possible solutions.
- Reset Docker desktop to factory reset.
- Upgrade the docker version.