Tag Archives: How to Install Nacos

Docker: How to Install Nacos

1. Create a local map file

mkdir -p /root/nacos/init.d /root/nacos/logs
touch /root/nacos/init.d/custom.properties

 

2. write configuration in file

management.endpoints.web.exposure.include=*

 

3. configure startup

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