一、CNI network “podman” not found

添加参数:—cgroup-manager=cgroupfs, —events-backend=file ,—net=host
例子:
podman —cgroup-manager=cgroupfs —events-backend=file run —net=host —rm -it docker.io/alpine ash

gocd运行命令如下

  1. # 启动服务
  2. podman --cgroup-manager=cgroupfs --events-backend=file run --net=host -d -p8153:8153 gocd/gocd-server-centos-8:v21.3.0
  3. # 启动客户端
  4. podman --cgroup-manager=cgroupfs --events-backend=file run --net=host -d -e GO_SERVER_URL=http://172.30.30.44:8153/go docker.io/gocd/gocd-agent-centos-8:v21.3.0
  5. # 启动客户端,带别名
  6. podman --cgroup-manager=cgroupfs --events-backend=file run --net=host --name=goagent1 -d -e GO_SERVER_URL=http://172.30.30.44:8153/go docker.io/gocd/gocd-agent-centos-8:v21.3.0

参考:https://www.cnblogs.com/iois/p/14673722.html

二、 potentially insufficient UIDs or GIDs available in user namespace

# 切换到对应的用户,下面以【go】用户为示例
su go
echo go:165537:65536 >> /etc/subuid
echo go:165537:65536 >> /etc/subgid
podman system migrate
podman info