如果您将本地 docker 注册表固定到,它将继续工作
registry:2.7.0
而不是仅使用来获取最新版本 2registry:2
可悲的是它已经坏了
详情请参阅https://github.com/docker/distribution-library-image/commit/ab00e8dae12d4515ed259015eab771ec92e92dd4 https://github.com/docker/distribution-library-image/commit/ab00e8dae12d4515ed259015eab771ec92e92dd4(他们删除了 apache2-utils 包)并且https://github.com/GoogleContainerTools/jib/pull/2538/commits/f816c837e34eb389c2cdee1bc9a2918c5d2e33e3 https://github.com/GoogleContainerTools/jib/pull/2538/commits/f816c837e34eb389c2cdee1bc9a2918c5d2e33e3 and https://github.com/GoogleContainerTools/jib/pull/2539 https://github.com/GoogleContainerTools/jib/pull/2539如中所引用的https://github.com/docker/distribution-library-image/issues/106 https://github.com/docker/distribution-library-image/issues/106
或者,您可以使用以下命令安装二进制 htpasswd,而不是从注册表内部执行 htpasswd:2
apt-get install apache2-utils # thankfully this is NOT the apache server
并使用语法
htpasswd -Bbn myuser mypwd > /my/registry2/reg/hub/auth/htpasswd
在 Ubuntu 18.04 或 20.04 上
PS 这里是来自 apache2-utils 包的所有文件...只是一些实用程序而不是任何服务器
dpkg -L apache2-utils
/.
/usr
/usr/bin
/usr/bin/ab
/usr/bin/checkgid
/usr/bin/fcgistarter
/usr/bin/htcacheclean
/usr/bin/htdbm
/usr/bin/htdigest
/usr/bin/htpasswd
/usr/bin/logresolve
/usr/bin/rotatelogs
/usr/sbin
/usr/sbin/check_forensic
/usr/sbin/httxt2dbm
/usr/sbin/split-logfile
/usr/share
/usr/share/doc
/usr/share/doc/apache2-utils
/usr/share/doc/apache2-utils/changelog.Debian.gz
/usr/share/doc/apache2-utils/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/ab.1.gz
/usr/share/man/man1/htdbm.1.gz
/usr/share/man/man1/htdigest.1.gz
/usr/share/man/man1/htpasswd.1.gz
/usr/share/man/man1/httxt2dbm.1.gz
/usr/share/man/man1/logresolve.1.gz
/usr/share/man/man8
/usr/share/man/man8/check_forensic.8.gz
/usr/share/man/man8/checkgid.8.gz
/usr/share/man/man8/fcgistarter.8.gz
/usr/share/man/man8/htcacheclean.8.gz
/usr/share/man/man8/rotatelogs.8.gz
/usr/share/man/man8/split-logfile.8.gz
为了更好地衡量,我给 docker 订了一张票https://github.com/docker/docker.github.io/issues/11060 https://github.com/docker/docker.github.io/issues/11060