docker部署nacos服务

windows

docker run --name nacos -e MODE=standalone -v /D/worktool/nacos/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -p 9848:9848 -d   nacos/nacos-server:v2.2.0

linux

docker run --name nacos -e MODE=standalone -v /home/nacos/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -p 9848:9848 -d  nacos/nacos-server:v2.2.0

mac

docker run --name nacos-v2.2.0 -e MODE=standalone -v /Users/xx/tools/nacos-2.2.0/conf/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -p 9848:9848 -d   nacos/nacos-server:v2.2.0
docker run --name nacos --restart=always -e MODE=standalone -v /Users/lihaiyang/docker/nacos/conf/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -p 9848:9848 -d   nacos/nacos-server:v2.3.2
posted @ 2023-04-14 10:21  尐海爸爸  阅读(86)  评论(0编辑  收藏  举报