Docker容器的端口是否可自定义 #1954
Answered
by
cy948
ouooo
asked this question in
Self Hosting | 私有化部署
Docker容器的端口是否可自定义
#1954
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arvinxx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
大佬好,这是一个不那么重要的问题,只是我在部署时想要自定义容器端口号和宿主机端口号一致,但是我不确定是否可以这样做,如果可以自定,还需要再环境变量中添加PORT="端口号"然后再进行端口映射吗?
还有一个问题是部署的指令里没有映射存储卷,是不是数据不需要保存呀
Beta Was this translation helpful? Give feedback.
All reactions