docker port 报错
迷茫
迷茫 2017-04-21 10:55:39
0
4
691

使用 “docker port 容器id 容器port” 映射容器的端口时,系统报错如下:

*[root@DockerServer ~]# docker port e7d817698b6f 80
2014/04/06 16:08:07 Error: No public port '80' published for e7d817698b6f

这是什么原因,大家有知道的吗?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
伊谢尔伦

Is the container port not EXPOSE beforehand?

PHPzhong

Expose the port first.

刘奇

The permissions are not enough. sudo docker port e7d817698b6f 80. Test or change to another port number (>1024)

Ty80
  1. Specify the port to EXPOSE when creating.
  2. Specify when startingPublishAllPort = true
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template