docker 安裝 Discourse ./launcher start app
天蓬老师
天蓬老师 2017-04-22 08:56:29
0
2
761
root@iZ25pamnfsuZ:/var/discourse# docker images
REPOSITORY             TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
local_discourse/app    latest              6d767d577160        27 seconds ago      1.812 GB
samsaffron/discourse   1.0.12              2285ff53ab18        12 weeks ago        1.217 GB
busybox                latest              8c2e06607696        4 months ago        2.433 MB

啟動的時候 報錯了 ./launcher start app

1b3dd113bfcce18cc29ce63265fcd1ab930400d838396ffea98e1723220c3133
Error response from daemon: Cannot start container 1b3dd113bfcce18cc29ce63265fcd1ab930400d838396ffea98e1723220c3133: Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use

80端口不能 kill 掉呀 ,線上還跑著其他web 服務

root@iZ25pamnfsuZ:/var/discourse# docker images
REPOSITORY             TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
local_discourse/app    latest              6d767d577160        3 hours ago         1.812 GB
samsaffron/discourse   1.0.12              2285ff53ab18        12 weeks ago        1.217 GB
busybox                latest              8c2e06607696        4 months ago        2.433 MB
docker run -d -p 8080:80 tutum/lamp

修改80端口 後如下

root@iZ25pamnfsuZ:/var/discourse# docker run -d -p 8080:80 local_discourse/app
f42e59fbb40384e971ade4ead24d93929f7df1fb8bcb74fb6d78ce3a17a52d65
root@iZ25pamnfsuZ:/var/discourse# ./launcher start app

starting up existing container
+ /usr/bin/docker start app
Error response from daemon: Cannot start container app: Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use
Error: failed to start containers: [app]

執行後 還是 不對

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

全部回覆(2)
洪涛
Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use

沒看到麼?你查一下是什麼東西把80埠給佔用了,然後kill掉。

Ty80
  1. 埠被佔用
    換埠

範例:

docker run -d -p 8080:80 tutum/lamp
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板