Skip to content

openGauss

Official

bash
skopeo copy \
  --all \
  docker://opengauss/opengauss:5.0.0 \
  docker://docker-hub.foobar.work/foobar-prod/opengauss/opengauss:5.0.0
bash
docker run -d \
  --name opengauss \
  -e GS_PASSWORD=foobar \
  -p 5492:5432 \
  docker-hub.foobar.work/foobar-prod/opengauss/opengauss:5.0.0

Enmotech

bash
skopeo copy \
  --all \
  docker://enmotech/opengauss:5.0.0 \
  docker://docker-hub.foobar.work/foobar-prod/enmotech/opengauss:5.0.0
bash
docker run -d \
  --name opengauss \
  --privileged=true \
  -e GS_PASSWORD=foobar \
  -p 5492:5432 \
  docker-hub.foobar.work/foobar-prod/enmotech/opengauss:5.0.0

omm user can not be used by remote connection.

bash
psql -h 192.168.80.9 -p 5492 -U omm -d postgres
bash
psql: error: connection to server at "192.168.80.9", port 5492 failed: FATAL:  Forbid remote connection with initial user.

gaussdb user is ok.

bash
psql -h 192.168.80.9 -p 5492 -U gaussdb -d postgres

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⁠.

Enter Container

bash
docker exec -it opengauss bash

Reference