专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

enmotech/opengauss Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

opengauss
enmotech/opengauss
enmotech
openGauss是一款源自华为的开源关系型数据库,以高性能、高安全性和高可靠性为核心优势,广泛应用于***、政务、电信等关键行业领域;恩墨科技(Enmotech)作为其重要生态合作伙伴,所制作的openGauss最新镜像,旨在为用户提供便捷高效的部署体验,助力企业及开发者快速搭建稳定可靠的数据库环境,有效满足数字化转型过程中的数据管理与业务支撑需求。
47 次收藏下载次数: 0状态:社区镜像维护者:enmotech仓库类型:镜像
😅 镜像要是出问题,背锅的一定是你
版本下载
😅 镜像要是出问题,背锅的一定是你

Quick Reference

  • Maintainers: EnmoTech OpenSource Team
  • Where to get help: Mo Tian Lun-openGauss

If you are attempting to run a container of openGauss version 5.0 or later on macOS or Windows, you should use the enmotech/opengauss-lite version. This is because since version 5.0, the openGauss EE container cannot start up properly on macOS or Windows. However, there are no issues when running it on Linux.

Supported Tags and Dockerfile Links

  • latest
  • 6.0.0
  • 5.1.0
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • 3.1.1
  • 3.1.0
  • 3.0.3
  • 3.0.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.1.0
  • 1.0.1
  • 1.0.0

About openGauss

openGauss is an open-source relational database management system released under the Mulan PSL v2 license. The openGauss kernel was originally derived from PostgreSQL and deeply integrates Huawei's extensive experience in the database field, continuously building competitive features tailored to enterprise needs. openGauss is also an open-source, free database platform that encourages community contributions and collaboration.

openGauss Community Official Website: [***]

!logo

Features of Enmotech openGauss Image

  • Enmotech closely tracks changes in the openGauss source code and releases new versions of the image promptly.
  • Enmotech's cloud database, virtual machine database, and container version database all use the same best practice initialization configuration, ensuring a nearly identical experience when dealing with various requirements.
  • Enmotech continuously releases various images for different CPU architectures (x86 or ARM) and operating systems.

Currently supports x86-64 and ARM64 architectures, automatically determined based on the machine architecture when obtaining the image.

From version 5.0 (including 5.0):

  • Enterprise edition and Lite edition separated. enmotech/opengauss is Enterprise edition, enmotech/opengauss-lite is Lite edition.

From version 3.0 (including 3.0):

  • The container uses the openGauss Database Lite version
  • Default startup with idle memory less than 200M
  • Added basic commands such as vi, ps, etc.

From version 2.0 (including 2.0):

  • openGauss for x86-64 architecture runs on the Ubuntu 18.04 operating system
  • openGauss for ARM64 architecture runs on the Debian 10 operating system

Before version 1.1.0 (including 1.1.0):

  • openGauss for x86-64 architecture runs on the CentOS 7.6 operating system
  • openGauss for ARM64 architecture runs on the openEuler 20.03 LTS operating system

How to Use This Image

Start an openGauss Instance

console
$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Enmo@123 enmotech/opengauss:latest

Environment Variables

To use the openGauss image more flexibly, additional parameters can be set. More controllable parameters will be added in future versions. The current version supports the following variables.

GS_PASSWORD

This parameter must be set when using the openGauss image. The value cannot be empty or undefined. This parameter sets the password for the openGauss database superuser omm and the test user gaussdb. The omm superuser is created by default during openGauss installation and the username cannot be changed at this time. The test user gaussdb is a custom-created user in the entrypoint.sh.

The openGauss image is configured with local trust mechanism, so no password is required to connect to the database within the container. However, if connecting from outside the container (other hosts or other containers), a password must be entered.

openGauss password complexity requirements: the password must be at least 8 characters long and contain uppercase and lowercase English letters, numbers, and special characters.

GS_NODENAME

Specifies the database node name. The default is gaussdb.

GS_USERNAME

Specifies the database connection username. The default is gaussdb.

GS_PORT

Specifies the database port. The default is 5432.

Connecting to the Container Database from Outside the Container

openGauss listens on port 5432 within the container by default. To access the database from outside the container, specify the -p parameter when running docker run. For example, the following command allows access to the container database using port ***.

console
$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -p ***:5432 enmotech/opengauss:latest

After successfully starting the container database with the above command, you can access the database using gsql from outside.

console
$ gsql -d postgres -U gaussdb -W'Secretpassword@123' -h your-host-ip -p***

Persistent Storage Data

Once a container is deleted, all data and configurations within the container will also be lost. If you run a container from the image again, all data will be in the initial state. Therefore, for database containers, to prevent data loss due to the container's demise or damage, persistent storage of data is required. This can be achieved by specifying the -v parameter when running docker run. For example, the following command will specify storing all data files of openGauss on the host machine at /enmotech/opengauss. The -u root parameter is used to specify that the script is executed as the root user when the container starts, otherwise, there will be permission issues in creating the data file directory.

Note: If using podman, there will be a target path check, and the target path on the host machine needs to be created in advance.

console
$ mkdir -p /enmotech/opengauss
$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Secretpassword@123 \
    -v /enmotech/opengauss:/var/lib/opengauss  -u root -p ***:5432 \
    enmotech/opengauss:latest

Create Master-Slave Replication openGauss Container

  1. Pull the container image
  2. Run the script create_master_slave.sh, enter the required parameters as prompted, or directly use the default values to automatically create two containers with a one-master-one-slave architecture of openGauss.

The above script has multiple custom parameters, the following are the parameter names (explanation) [default value].

OG_SUBNET (Container subnet) [172.11.0.0/24]
GS_PASSWORD (Define database password) [Enmo@123]
MASTER_IP (Master database IP) [172.11.0.101]
SLAVE_1_IP (Slave database IP) [172.11.0.102]
MASTER_HOST_PORT (Master database service port) [5432]
MASTER_LOCAL_PORT (Master communication port) [5434]
SLAVE_1_HOST_PORT (Slave database service port) [6432]
SLAVE_1_LOCAL_PORT (Slave communication port) [6434]
MASTER_NODENAME (Master node name) [opengauss_master]
SLAVE_NODENAME (Slave node name) [opengauss_slave1]

Usage Example
Pull the Image
console
# docker pull enmotech/opengauss:latest
Get and Run the Script to Create Master-Slave Containers
console
# wget [***]
# chmod +x create_master_slave.sh 
# ./create_master_slave.sh 
Please input OG_SUBNET (Container subnet) [172.11.0.0/24]: 
OG_SUBNET set 172.11.0.0/24
Please input GS_PASSWORD (Define database password) [Enmo@123]: 
GS_PASSWORD set Enmo@123
Please input MASTER_IP (Master database IP) [172.11.0.101]: 
MASTER_IP set 172.11.0.101
Please input SLAVE_1_IP (Slave database IP) [172.11.0.102]: 
SLAVE_1_IP set 172.11.0.102
Please input MASTER_HOST_PORT (Master database service port) [5432]: 
MASTER_HOST_PORT set 5432
Please input MASTER_LOCAL_PORT (Master communication port) [5434]: 
MASTER_LOCAL_PORT set 5434
Please input SLAVE_1_HOST_PORT (Slave database service port) [6432]: 
SLAVE_1_HOST_PORT set 6432
Please input SLAVE_1_LOCAL_PORT (Slave communication port) [6434]: 
SLAVE_1_LOCAL_PORT set 6434
Please input MASTER_NODENAME [opengauss_master]: 
MASTER_NODENAME set opengauss_master
Please input SLAVE_NODENAME [opengauss_slave1]: 
SLAVE_NODENAME set opengauss_slave1
Please input openGauss VERSION [1.0.1]: 
openGauss VERSION set 1.0.1
starting  
a70b46c7b2ddd1b6959403a0ac5b6783cf3f4100404fa628b8f055352a3e8567
OpenGauss Database Network Created.
e5430f***ac6a681e7f7db5ebbce8bf40c576e17ae412a3003f27b8ea14
OpenGauss Database Master Docker Container created.
bcb688c551b15d34196c249fdf934e4b8140a9181d6dde809c957405ec1ed29a
OpenGauss Database Slave1 Docker Container created.
Verify Master-Slave Status
# docker exec -it opengauss_master /bin/bash
# su - omm
Last login: Thu Oct  1 23:19:49 UTC 2020 on pts/0
$ gs_ctl query -D /var/lib/opengauss/data/
[2020-10-01 23:21:27.685][316][][gs_ctl]: gs_ctl query ,datadir is -D "/var/lib/opengauss/data"  
 HA state:           
        local_role                     : Primary
        static_connections             : 1
        db_state                       : Normal
        detail_information             : Normal

 Senders info:       
        sender_pid                     : 258
        local_role                     : Primary
        peer_role                      : Standby
        peer_state                     : Normal
        state                          : Streaming
        sender_sent_location           : 0/3000550
        sender_write_location          : 0/3000550
        sender_flush_location          : 0/3000550
        sender_replay_location         : 0/3000550
        receiver_received_location     : 0/3000550
        receiver_write_location        : 0/3000550
        receiver_flush_location        : 0/3000550
        receiver_replay_location       : 0/3000550
        sync_percent                   : 100%
        sync_state                     : Sync
        sync_priority                  : 1
        sync_most_available            : On
        channel                        : 172.11.0.101:5434-->172.11.0.102:53786

 Receiver info:      
No information 

License

Copyright (c) 2011-2024 Enmotech

The license agreement follows GPL v3.0, and you can get the detailed content of the agreement from the link below.

[***]

About EnmoTech

EnmoTech is an Intelligent Data Technology provider established in 2011, headquartered in Beijing, with offices covering 35 regions globally including Hong Kong, Singapore and Sydney. Since its inception, EnmoTech has focused continuously on innovating and developing solutions for data and databases. Our range of solutions include HTAP DBMS, software defined distributed storage, database deployment, performance management and intelligent data analytics. More than 3,000 corporate clients with more than 50,000 business systems has been served and managed by EnmoTech. Learn more at [***] or contact ***

查看更多 opengauss 相关镜像 →
opengauss/opengauss logo
opengauss/opengauss
opengauss
openGauss官方Docker镜像是由openGauss官方提供的可移植容器打包格式,集成了openGauss数据库引擎、必要配置文件及运行依赖,旨在简化数据库部署流程,确保不同环境下的运行一致性,方便用户快速启动、配置和使用openGauss高性能关系型数据库,适用于开发测试、学习实践等多种场景,为用户提供便捷、高效的数据库使用体验。
14 次收藏10万+ 次下载
7 个月前更新
opengauss/opengauss-server logo
opengauss/opengauss-server
opengauss
openGauss官方简化版镜像,提供轻量级企业级开源关系型数据库服务,精简非必要组件,保留核心功能,适用于开发、测试及轻量级生产环境,支持快速部署与简化配置。
1万+ 次下载
22 天前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
enmotech/opengauss
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.