You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# RegistryURI
if [ "$RegistryURI" != "" ]; then
if [ "${RegistryURI: -1}" != "/" ]; then
RegistryURI="${RegistryURI}/"
fi
sed -i "s#RegistryURI=.*#RegistryURI=${RegistryURI}/#g" ./confs-"$party_id"/.env
fi
if [ "$RegistryURI" != "" ]; then
if [ "${RegistryURI: -1}" != "/" ]; then
RegistryURI="${RegistryURI}/"
fi
sed -i "s#RegistryURI=.*#RegistryURI=${RegistryURI}#g" ./confs-"$party_id"/.env
fi
也即,去掉后面sed中额外添加的斜杠。
The text was updated successfully, but these errors were encountered:
generate_config.sh
这一部分代码,如果用户设置了RegistryURI,不论RegistryURI是否有使用/结尾,,也就是不论
RegistryURI = hub.c.163.com
RegistryURI = hub.c.163.com/
程序执行完毕后都会变成 RegistryURI = hub.c.163.com//,多了个斜杠。而这会导致镜像拉取时报异常
ERROR: invalid reference format
。建议修改为:
也即,去掉后面sed中额外添加的斜杠。
The text was updated successfully, but these errors were encountered: