使用 “docker port 容器id 容器port” 映射容器的端口时,系统报错如下:
*[root@DockerServer ~]# docker port e7d817698b6f 80 2014/04/06 16:08:07 Error: No public port '80' published for e7d817698b6f
这是什么原因,大家有知道的吗?
业精于勤,荒于嬉;行成于思,毁于随。
Is the container port not EXPOSE beforehand?
Expose the port first.
The permissions are not enough. sudo docker port e7d817698b6f 80. Test or change to another port number (>1024)
EXPOSE
PublishAllPort = true
Is the container port not EXPOSE beforehand?
Expose the port first.
The permissions are not enough. sudo docker port e7d817698b6f 80. Test or change to another port number (>1024)
EXPOSE
when creating.PublishAllPort = true