docker-labs icon indicating copy to clipboard operation
docker-labs copied to clipboard

基于create service 的容器无法在外面访问

Open tanghw opened this issue 7 years ago • 3 comments

tanghw avatar Jun 18 '17 03:06 tanghw

可以将你的操作的命令列出来吗?

bingohuang avatar Jun 20 '17 12:06 bingohuang

举个例子: docker run -d -p 80:80 nginx 可以访问到 然后在docker swarm模式 docker swarm init --advertise-addr eth0 docker create service -d -p 8080:80 nginx 不可以访问到

1

2

3

------------------ 原始邮件 ------------------ 发件人: "Bingo Huang";[email protected]; 发送时间: 2017年6月20日(星期二) 晚上8:22 收件人: "bingohuang/docker-labs"[email protected]; 抄送: "tanghw"[email protected]; "Author"[email protected]; 主题: Re: [bingohuang/docker-labs] 基于create service 的容器无法在外面访问 (#1)

可以将你的操作的命令列出来吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tanghw avatar Jun 21 '17 03:06 tanghw

测试过play-wth-docker上的,没有问题 snip20170621_6 snip20170621_7

tanghw avatar Jun 21 '17 03:06 tanghw