Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何修改端口 #203

Open
telnetpig opened this issue Aug 29, 2024 · 1 comment
Open

如何修改端口 #203

telnetpig opened this issue Aug 29, 2024 · 1 comment

Comments

@telnetpig
Copy link

docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest
冒号前后的两个12345都表示访问端口吗?
如果要修改为通过6000端口访问,是否是修改为-p 6000:6000

@u1s3-fu
Copy link

u1s3-fu commented Sep 19, 2024

只修改前面的端口号即可,一个是容器端口一个是本机端口。这样 -p 6000:12345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants