docker: Error response from daemon: driver failed programming external connectivity on endpoint rabbitmq (45a5e03a381a9f7a00df787631122ef0446419376e890f263b3bf36d2520f9c7): Error starting userland proxy: listen tcp4 0.0.0.0:15672: bind: address already in
时间: 2023-07-17 12:55:42 浏览: 250
Docker获取镜像报错docker: Error response from daemon
This error usually occurs when the port you are trying to bind to is already in use by another process. In this case, port 15672 is already being used by another application or container.
To resolve this issue, you can try the following steps:
1. Check if there is any other process or container using port 15672. You can use the following command to check:
```
sudo lsof -i :15672
```
This will display the process or container that is using the port. You can then stop or kill that process/container.
2. If you are using Docker Compose, make sure that you don't have multiple services trying to bind to the same port. Each service should have a unique port mapping.
3. If the issue persists, you can try restarting the Docker service. Use the following command to restart Docker:
```
sudo systemctl restart docker
```
After restarting Docker, try running your container again.
If none of these steps resolve the issue, please provide more details about your setup and the commands you are using to run the container, so that I can assist you further.
阅读全文