Docker两次启动同一容器时出错

时间:2019-12-25 17:54:31

标签: docker docker-compose

我正在尝试启动一个运行良好的存储库,但是现在当我使用docker-compose up--build时,它也会创建网络驱动程序,然后两次创建sqs_1导致此错误

Creating evalai-ngx_sqs_1 …
Creating evalai-ngx_sqs_1 … error
WARNING: Host is already in use by another container

ERROR: for evalai-ngx_sqs_1 Cannot start service sqs: driver failed programming external  connectivity on endpoint evalai-ngx_sqs_1 (5103436ff627cbbafe1bde3592eac4b0c654bdb8f19f700e864bc2278b98f459): Bind for 0.0.0.0:9324 failed: port is already allocated
Creating evalai-ngx_db_1 … error

ERROR: for evalai-ngx_db_1 Cannot start service db: driver failed programming external connectivity on endpoint evalai-ngx_db_1 (d0d92e2e853b3d07924be9c66f97c5093a843e0ffab9d929e4dfb7f6bc8870e0): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use

ERROR: for sqs Cannot start service sqs: driver failed programming external connectivity on endpoint evalai-ngx_sqs_1 (5103436ff627cbbafe1bde3592eac4b0c654bdb8f19f700e864bc2278b98f459): Bind for 0.0.0.0:9324 failed: port is already allocated

ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint evalai-ngx_db_1 (d0d92e2e853b3d07924be9c66f97c5093a843e0ffab9d929e4dfb7f6bc8870e0): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
ERROR: Encountered errors while bringing up the project.

我试图删除容器,将其停止,我什至尝试了一次修剪和不受限制的码头工人,但还是一样。

1 个答案:

答案 0 :(得分:0)

我以前安装了postgresql,现在确实禁用了我的数据库服务