Prompt: docker restart XXX error response from daemon: cannot restart container XXX: container “XXX”: already exists
Even if you run systemctl restart docker, it doesn’t work. Maybe some containers use systemctl stop docker, which will start the container of the bridge network, but will not kill the docker??? Using docker start XXX, the error “already exists” is always reported.
Cause: the container did not exit safely
Solution 1:
#xxx is the container of hash_id
rm -r /var/run/docker/runtime-runc/moby/xxx
Solution 2:
never mind. Restart can solve 50% of the problems:
reboot
Read More:
- [docker][issue]Error response from daemon: mkdir xxx: file exists: unknown
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- The docker export container cannot be run after being imported: error response from daemon: no command specified
- How to Solve Docker delete container image error: Error response from daemon: conflict: unable to delete 7cc1942f1ed5 (must be forced)
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- Linux Virtual Machine Boot Container: Error response from daemon: driver failed programming external connectivity on endpoint
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- [Solved] Error response from daemon: manifest for nvidia/cuda:latest not found: manifest unknown: manifest
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- [Solved] OCI runtime create failed: /usr/bin/nvidia-container-runtime did not terminate successfully: unknown
- [Solved] OCI runtime create failed: runc create failed: unable to start container process:
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- The solution of insufficient disk space of docker in Ubuntu
- [Solved] Centos Start rabbitmq Error: ERROR: epmd error for host “192“:badarg (unknown POSIX error)