Eric Guo's blog.cloud-mes.com

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

Using Podman-docker in Tlinux - TencentOS Version 3.1

Permalink

Notice gitlab still need using real docker instead of podman-docker and below is only record as a testing purpose and failed, detail see gitlab issue 27119.

sudo yum install podman-docker
sudo mv /etc/containers/registries.conf /etc/containers/registries.conf.orig
docker run --rm -t -i gitlab/gitlab-runner --help
sudo mkdir -p /srv/gitlab-runner/config
docker run --rm -it -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register
docker run --rm -it -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner verify
/etc/containers/registries.conf
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
insecure = false
blocked = false
location = "docker.io"
[[registry.mirror]]
location = "hub-mirror.c.163.com"
[[registry.mirror]]
location = "registry.docker-cn.com"

Comments