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

关于文档【单机模式部署】的反馈 #878

Open
kuok opened this issue Mar 12, 2025 · 0 comments
Open

关于文档【单机模式部署】的反馈 #878

kuok opened this issue Mar 12, 2025 · 0 comments

Comments

@kuok
Copy link

kuok commented Mar 12, 2025

文档页
https://nacos.io/docs/v2.4/manual/admin/deployment/deployment-standalone/?spm=5238cd80.2ef5001f.0.0.3f613b7curtyBZ

Image

这里似乎少了一个-e参数
文档里面
docker run --name nacos-standalone-auth -e MODE=standalone -e NACOS_AUTH_ENABLE=true -e NACOS_AUTH_TOKEN=${customToken} -e NACOS_AUTH_IDENTITY_KEY=${customKey} NACOS_AUTH_IDENTITY_VALUE=${customValue} -p 8848:8848 -d -p 9848:9848 nacos/nacos-server:latest

执行有报错docker: invalid reference format: repository name (library/NACOS_AUTH_IDENTITY_VALUE=**********) must be lowercase.

改为
docker run --name nacos-standalone-auth -e MODE=standalone -e NACOS_AUTH_ENABLE=true -e NACOS_AUTH_TOKEN=${customToken} -e NACOS_AUTH_IDENTITY_KEY=${customKey} -e NACOS_AUTH_IDENTITY_VALUE=${customValue} -p 8848:8848 -d -p 9848:9848 nacos/nacos-server:latest

执行成功。


文档详细信息

请勿编辑此部分。nacos.io ➟ GitHub 问题链接必须具有此部分。

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

1 participant