Be more inclusive in insecure registry regex
The regex failed to match the INSECURE_REGISTRY string used in latest atomic host image due to it expecting a whitespace after --insecure-registry. Change-Id: Ib8f288d844b4d94b0f6309bfd04bb05930d8c4c5
This commit is contained in:
parent
c3611e0f70
commit
704a78d342
@ -23,7 +23,7 @@ if [ $docker_namespace_is_registry ]; then
|
||||
# if namespace is used with local registry, trim all namespacing
|
||||
trim_var=$docker_registry
|
||||
registry_host="${trim_var%%/*}"
|
||||
/bin/sed -i "s/# INSECURE_REGISTRY='--insecure-registry[ ]'/INSECURE_REGISTRY='--insecure-registry $registry_host'/g" /etc/sysconfig/docker
|
||||
/bin/sed -i -r "s/^[# ]*INSECURE_REGISTRY *=.+$/INSECURE_REGISTRY='--insecure-registry $registry_host'/" /etc/sysconfig/docker
|
||||
/usr/bin/systemctl start --no-block docker.service
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user