- 创建本地的映射文件
mkdir -p /root/nacos/init.d /root/nacos/logs
touch /root/nacos/init.d/custom.properties
- 在文件中写入配置
management.endpoints.web.exposure.include=*
- 配置启动
docker run -d -p 8848:8848 -e MODE=standalone -e PREFER_HOST_MODE=hostname -v /home/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties -v /home/nacos/logs:/home/nacos/logs --restart always --name nacos nacos/nacos-server
标签:logs,Nacos,nacos,init,home,Docker,custom,安装,properties
From: https://www.cnblogs.com/seawavelin/p/16857177.html