nacos server is made by nacos official code. https://nacos.io/en-us/docs/quick-start.html
437
How about this nacos container?
this image is nacos server , reduces the jvm size,and sets the yum source by aliyun.
How to use ?
first, pull this image from docker.io
docker pull pengzu/nacos
second, docker run this image.
docker run -d --name nacos -e MODE=standalone pengzu/nacos
or
docker run -d --name nacos -p 8848:8848 -e MODE=standalone pengzu/nacos
if you want to save data to mysql ,you can edit application.properties in docker container.
docker exec -it nacos /bin/bash
cd /home/nacos/conf
vi application.properties
and add these infomation at the end
db.num=2
db.url.0=jdbc:mysql://172.18.0.2:3306/nacos_devtest?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.url.1=jdbc:mysql://172.18.0.2:3306/nacos_devtest?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=nacos_devtest
db.password=nacos
then save and exit the file ,restart the container
docker restart nacos
you can visit ip:8848/nacos
Content type
Image
Digest
Size
290.7 MB
Last updated
over 7 years ago
docker pull pengzu/nacos