如下,目录配置自行创建、调整
docker run --name nacos-2.1.0 \ -p 8848:8848 \ -p 9848:9848 \ -p 9849:9849 \ --privileged=true \ --restart=always \ -e JVM_XMS=256m \ -e JVM_XMX=256m \ -e MODE=standalone \ -e TIME_ZONE='Asia/Shanghai' \ -e PREFER_HOST_MODE=hostname \ -v /home/tool/server/nacos2.1.0/logs:/home/nacos/logs \ -v /home/tool/server/nacos2.1.0/conf:/home/nacos/conf \ -d nacos/nacos-server:v2.1.0
配置目录如下
end
标签:logs,--,nacos,server,home,docker,安装 From: https://www.cnblogs.com/xh_Blog/p/18060674