Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tanghw opened this issue Jun 18, 2017 · 3 comments
Open

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

tanghw opened this issue Jun 18, 2017 · 3 comments

Comments

@tanghw
Copy link

tanghw commented Jun 18, 2017

No description provided.

@bingohuang
Copy link
Owner

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

@tanghw
Copy link
Author

tanghw commented Jun 21, 2017

举个例子:
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
Copy link
Author

tanghw commented Jun 21, 2017

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

Repository owner deleted a comment Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants