$DOCKER_REGISTRY_HOST default value should keep consistent with sparrow/3-code/dev-env, use server ip.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/0-package/common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sparrow/0-package/common b/sparrow/0-package/common index 2753b9d..74905f1 100755 --- a/sparrow/0-package/common +++ b/sparrow/0-package/common @@ -26,7 +26,9 @@ cat >> /etc/modules-load.d/cifs <<EOF cifs EOF
-: ${DOCKER_REGISTRY_HOST:="127.0.0.1"} +server_ip=$(ip route get 1.2.3.4 | awk '{print $7; exit}') + +: ${DOCKER_REGISTRY_HOST:=$server_ip} : ${DOCKER_REGISTRY_PORT:=5001} cat > /etc/docker/daemon.json <<EOF {