问答详情
源自:6-3 compose实战

Bind for 0.0.0.0:3306 failed: port is already allocated 是不是因为本机的mysql在运行的原因


ERROR: for ghost_db_1  Cannot start service db: b'driver failed programming external connectivity on endpoint ghost_db_1 (aca0e5698bfda9341e1a2e063df9607f74eb04d771dd299f26995e1c7055da27): Error starting userland proxy: Bind for 0.0.0.0:3306 failed: port is already allocated'


ERROR: for db  Cannot start service db: b'driver failed programming external connectivity on endpoint ghost_db_1 (aca0e5698bfda9341e1a2e063df9607f74eb04d771dd299f26995e1c7055da27): Error starting userland proxy: Bind for 0.0.0.0:3306 failed: port is already allocated'

ERROR: Encountered errors while bringing up the project.


提问者:星辰Star 2019-01-30 17:30

个回答

  • yuzhewo
    2020-12-01 16:57:48

    三个容器只有nginx需要暴露端口,其他两个没有暴露的必要,如果可以直接通过2368可以访问就没必要开启nginx代理了。

  • 演绎7
    2019-02-18 11:35:22

    是的。