[Nacos] Starting Nacos with Docker

Preface: I received a requirement today. Since most applications in the customer’s cluster require configuration from the configuration center to be pushed to Nacos, I did some research and quickly started a local Nacos using Docker.

What Is Nacos?

Nacos is a new open-source project launched by Alibaba. It is a dynamic service discovery, configuration management, and service management platform that makes it easier to build cloud-native applications.

Nacos is committed to helping you discover, configure, and manage microservices. Nacos provides a simple and easy-to-use set of features that helps you quickly implement dynamic service discovery, service configuration, service metadata, and traffic management.

Nacos helps you build, deliver, and manage microservice platforms more easily and efficiently. Nacos is service infrastructure for building modern service-centric application architectures, such as the microservices and cloud-native paradigms.

Official Documentation

Starting Nacos with Docker

This deployment uses standalone mode.

Pull the Official Image

1
docker pull nacos/nacos-server

Start the Docker Container

1
docker run --name nacos-standalone -e MODE=standalone -p 8848:8848 -d nacos/nacos-server:latest

Verify the Deployment

The service is started on port 8848 of the local machine. Open a browser and visit:

http://127.0.0.1:8848/nacos/index.html

The default username and password are both nacos.

image-20210519194118405

After logging in, you can add configurations under Configuration Management.

image-20210519194213398

转载需要保留原始链接,未经明确许可,禁止商业使用。CC BY-NC-SA 4.0
Last updated on 2021-05-19
Built with Hugo
Theme Stack designed by Jimmy