###前提・実現したいこと
現在Docker公式チュートリアルの3番を行っています。
チュートリアル通りに動かしたいです。
コンテナ単体で起動するとコンテナへアクセス出来るのですが、
docker swarmを使用した場合に応答がありません。
###発生している問題・エラーメッセージ
「docker stack deploy -c docker-compose.yml getstartedlab」
を実行した後、「curl http://localhost/」を実行しても応答がありません。
5分以上待っても応答がありません。
###試したこと
docker exec -it <コンテナのhash> bash
にて、一つのコンテナにログインしたのですが、
どう確認すれば良いのか分かりませんでした。
また、以下通り、コンテナは起動しているようです。
[root@localhost docker-tutorial]# docker stack ps getstartedlab ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS muhn8pb6crj3 stack_web.1 hogehoge/get-started:part1 localhost.localdomain Running Running 50 minutes ago ts7c3wkpcgye stack_web.2 hogehoge/get-started:part1 localhost.localdomain Running Running 50 minutes ago bcgtpd1y2e7l stack_web.3 hogehoge/get-started:part1 localhost.localdomain Running Running 50 minutes ago k6dwgm1tfzgr stack_web.4 hogehoge/get-started:part1 localhost.localdomain Running Running 50 minutes ago hbbmsyksqov6 stack_web.5 hogehoge/get-started:part1 localhost.localdomain Running Running 50 minutes ago
###質問
なぜlocalhost:80から応答がないのでしょうか。
どうすれば応答がない原因を調べられますでしょうか。
宜しくお願い致します。
あなたの回答
tips
プレビュー