2 评论

  1. 键入命令docker-compose up -d 后出现以下提示
    是否愿意帮忙解答一下,谢谢

    [+] Building 0.0s (0/0) docker:default
    [+] Running 2/2
    ✔ Network root_default Created 0.1s
    ✔ Container root-app-1 Created 1.2s
    Error response from daemon: driver failed programming external connectivity on endpoint root-app-1 (1188e55a6ebcdad4fcd24e9036a5403a983b011eafddffc85f5df35e7594ae3b): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
    root@vmi1500356:~# docker-compose up -d
    [+] Building 0.0s (0/0) docker:default
    [+] Running 0/1
    ⠹ Container root-app-1 Starting 0.2s
    Error response from daemon: driver failed programming external connectivity on endpoint root-app-1 (1ac2c4faa2fbe23068109813e170082333d10f369294ee8112b689bf5ecefcdf): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
    root@vmi1500356:~# docker-compose up -d
    [+] Building 0.0s (0/0) docker:default
    [+] Running 0/1
    ⠙ Container root-app-1 Starting 0.1s
    Error response from daemon: driver failed programming external connectivity on endpoint root-app-1 (8b42b9b58cb617148fe2fcb10f2672e76c93a8eea0ea3c3cf83bb904a982a5c6): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
    root@vmi1500356:~#

    • 你好,这是因为80端口被占用了。
      输入命令 ” sudo lsof -i :80 ”
      就能看到是什么进程在占用80端口,
      如果要释放的话,使用命令 ” sudo kill -9 [进程ID/PID] ” 即可终止对应进程。

留下评论

您的电子邮箱地址不会被公开。 必填项已用*标注