Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Docker 运行 OTRS。但它使用端口 49154 /49153 我可以知道将其更改为固定端口的命令吗?对不起。谢谢你。我是码头工人的新手。顺便说一句,我使用的是 CentOS。
很难确切地理解问题是什么,因为您没有提供很多细节。但是,如果你做了类似的事情:
docker run -P -d otrs
Docker 将在主机上为容器选择一个随机的高编号端口。您可以使用参数绑定到特定端口,-p例如:
-p
docker run -p -d 8000:80 otrs
将主机上的 8000 端口绑定到容器中的 80 端口。