Docker container cannot be started. An error is reported after startup:
error invoking remote method 'docker-start-container': error: (http code 500) server error - ports are not available: listen tcp 0.0.0.0:3306: bind: an attempt was made to access a socket in a way forbidden by its access permissions.
First restart the computer (host), and then execute it on the command line (or wsl2)
docker ps -a
Check the container ID that cannot be started, and then execute
docker restart Container ID
If it still cannot be started, try to allow the windows (Linux) firewall to pass through the port and make sure it is not blocked by the firewall
Read More:
- [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
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- Docker Start Container Error: Error response from daemon: task already exists: unknown
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- The docker export container cannot be run after being imported: error response from daemon: no command specified
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- How to Solve Docker delete container image error: Error response from daemon: conflict: unable to delete 7cc1942f1ed5 (must be forced)
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- Docker -v Directory Mount (How to Use)
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- Docker Run ‘echo core > /proc/sys/kernel/core_pattern‘ Error
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- docker-compose -version Run Error [How to Fix]
- The solution of insufficient disk space of docker in Ubuntu
- See system logs and ‘systemctl status docker.service‘ for details
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con