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 11:55:42 浏览: 148
Docker源码分析(十):Docker镜像下载
This error message indicates that there is a conflict in binding the address and port for the RabbitMQ container. The port 15672 is already in use by another process on your system.
To resolve this issue, you can try the following steps:
1. Identify the process that is using port 15672 by running the following command:
```
sudo lsof -i :15672
```
2. The above command will display the process ID (PID) of the process using that port. You can then terminate the process using the PID with the following command:
```
sudo kill <PID>
```
3. After terminating the conflicting process, try starting the RabbitMQ container again.
If you still encounter the same issue or if the conflicting process is essential and cannot be terminated, you can consider changing the port mapping for the RabbitMQ container to a different port that is not in use.
阅读全文