/
DirectorySecurity AdvisoriesPricing
Sign in
Directory
nacos logo

nacos

Last changed

Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for nacos

Dynamic service discovery, configuration and service management platform for building AI cloud native applications.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/nacos:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

The nacos image is compatible with the upstream nacos/nacos-server image with the following differences:

  • The image runs as a non-root user
  • Uses Wolfi packages for improved security
  • Contains minimal dependencies for reduced attack surface

There are no breaking changes in the API or configuration.

Getting Started

The nacos image can be run in standalone or cluster mode. For development and testing, standalone mode is recommended:

docker run -d --name nacos \
  -e MODE=standalone \
  -e NACOS_AUTH_ENABLE=false \
  -p 8848:8848 \
  cgr.dev/ORGANIZATION/nacos

After starting, the Nacos console will be available at http://localhost:8848/nacos. The default credentials are nacos/nacos.

For production deployments, enable authentication and use cluster mode:

docker run -d --name nacos \
  -e MODE=cluster \
  -e NACOS_AUTH_ENABLE=true \
  -e NACOS_AUTH_TOKEN=your-secret-token \
  -e NACOS_AUTH_IDENTITY_KEY=serverIdentity \
  -e NACOS_AUTH_IDENTITY_VALUE=security \
  -p 8848:8848 \
  cgr.dev/ORGANIZATION/nacos

Usage with Helm

To deploy Nacos on Kubernetes using Helm:

helm repo add ygqygq2 https://ygqygq2.github.io/charts
helm repo update

cat > values.yaml <<EOF
image:
  registry: cgr.dev/ORGANIZATION
  repository: nacos
  tag: latest

nacos:
  serverMode: standalone
  domainName: nacos.example.com
EOF

helm install nacos ygqygq2/nacos -f values.yaml

Configuration

Nacos can be configured through environment variables. Key configuration options include:

  • MODE: Set to standalone for single-node deployment or cluster for multi-node
  • NACOS_AUTH_ENABLE: Enable authentication (recommended for production)
  • NACOS_AUTH_TOKEN: JWT token for authentication (base64 encoded)
  • SPRING_DATASOURCE_PLATFORM: Database type (mysql for external database)
  • MYSQL_SERVICE_HOST: MySQL host when using external database
  • MYSQL_SERVICE_DB_NAME: Database name for MySQL

For a complete list of configuration options, refer to the Nacos documentation.

Documentation and Resources

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • BSD-3-Clause

  • Bitstream-Vera

  • FTL

  • GCC-exception-3.1

  • GPL-2.0-only

  • GPL-2.0-or-later

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Category
application

Safe Source for Open Source™
Contact us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Product

Chainguard ContainersChainguard LibrariesChainguard VMsIntegrationsPricing