在CoreOS中,使用docker run -d -P xxx /run.sh运行容器,容器中开启了3000端口,但是主机上并未做映射,docker inspect 容器名看端口映射列表也是空的,但是使用docker run -d -p 0.0.0.0::3000 xxx /run.sh是可以映射端口出来的。也就是-P不行,在CentOS7上可以,这是CoreOS中的BUG么 - -!
docker run -d -P xxx /run.sh
docker inspect 容器名
docker run -d -p 0.0.0.0::3000 xxx /run.sh
-P
闭关修行中......
I have been using Centos7.2 and have not encountered the problems raised by the poster
docker run -d -p 3000:3000 xxx /run.shTry it like this, it seems to be used this way
docker run -d -p 3000:3000 xxx /run.sh
I have been using Centos7.2 and have not encountered the problems raised by the poster
docker run -d -p 3000:3000 xxx /run.sh
Try it like this, it seems to be used this way