当我输入nginx容器时,它不会在提示符上显示容器ID。
nginx也没有按预期运行,我已经检查了它所服务的html文件。当该html文件不存在于容器中的任何地方时,它显示“欢迎使用Nginx”。
[ec2-user@ip-10-0-0-194 ~]$ docker -v
Docker version 1.9.1, build a34a1d5/1.9.1
[ec2-user@ip-10-0-0-194 ~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
813b76df0094 quikordernginx "nginx -g 'daemon off" 6 minutes ago Up 5 minutes 80/tcp, 443/tcp mad_banach
bef84977861e nscithelp/adminrenderclient: "nginx -g 'daemon off" 6 minutes ago Up 6 minutes small_wozniak
bdaa17e05c9d nscithelp/adminrenderservice: "npm start" 6 minutes ago Up 6 minutes 0.0.0.0:1338->1338/tcp big_banach
2c9381e15f28 nscithelp/renderservice: "npm start" 6 minutes ago Up 6 minutes 0.0.0.0:1337->1337/tcp, 8000/tcp modest_rosalind
7096fa7ec8de nscithelp/phoenixservices: "npm start" 6 minutes ago Up 6 minutes prickly_mcnulty
2e15c84fed6b jenkinssaved "/bin/sh -c 'BUILD_ID" 4 days ago Up 5 hours 0.0.0.0:8080->8080/tcp, 0.0.0.0:50000->50000/tcp sick_carson
[ec2-user@ip-10-0-0-194 ~]$ docker exec -it bef8 bash
root@ip-10-0-0-194:/#
答案 0 :(得分:0)
我想通了......那个容器bef8正在使用--net = host flag