docker 安装 Discourse ./launcher start app
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]
执行后 还是 不对
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没看到么?你查一下是什么东西把80端口给占用了,然后
kill
掉。端口被占用
换端口
例子: