install harbor v2.9.4

2024-08-19

https://github.com/goharbor/harbor/releases/download/v2.9.4/harbor-offline-installer-v2.9.4.tgz

1、
ver=v2.9.4
#wget https://github.com/goharbor/harbor/releases/download/${ver}/harbor-offline-installer-${ver}.tgz
tar -xvf harbor-offline-installer-${ver}.tgz
cd /opt/harbor/
cp harbor.yml.tmpl harbor.yml
#harbor.yml

2、IMAGE_USERNAME="user"
IMAGE_PASSWORD="pw"
HARBOR_HOST=idc-harbor.test.com/xx
docker login -u ${IMAGE_USERNAME} -p ${IMAGE_PASSWORD} ${HARBOR_HOST}

docker pull /<项目名>/<仓库名>:<标签>
docker images

3、安装harbor出现问题:

[+] Running 1/1
✘ Network harbor_harbor Error 0.2s
failed to create network harbor_harbor: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-363a2cbe32fe -j RETURN: iptables: No chain/target/match by that name.
(exit status 1))

这个错误信息表明 Docker 在尝试设置网络时遇到了问题,具体是关于 iptables 的 SKIP DNAT 规则。iptables 是 Linux 系统中用于配置网络防火墙规则的工具,Docker 使用它来管理容器的网络。
iptables -t nat -F
ifconfig docker0 down
iptables -t nat -F
systemctl restart docker

./prepare
./install.sh

分类:Linux | 标签: |

相关日志

评论被关闭!