From 70fb7d5f5f7c6ae5f23f23ac5133f226a9c63c26 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 17 Nov 2023 23:49:09 -0800 Subject: [PATCH] making sure docker registry has knowledge of the host --- cleanup-docker-disk-space.sh | 4 ++-- container-registry/docker-compose.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cleanup-docker-disk-space.sh b/cleanup-docker-disk-space.sh index 49245fa..3797065 100755 --- a/cleanup-docker-disk-space.sh +++ b/cleanup-docker-disk-space.sh @@ -103,8 +103,8 @@ restart_docker_engine () { # On Linux, restart through "systemd" elif [ "$(uname)" == "Linux" ] && is_program_installed "systemctl"; then - sudo systemctl stop docker.service || true - sudo systemctl start docker.service + sudo systemctl stop snap.docker.dockerd.service || true + sudo systemctl start snap.docker.dockerd.service # Other platforms are not supported else diff --git a/container-registry/docker-compose.yaml b/container-registry/docker-compose.yaml index 1e136f3..e908559 100644 --- a/container-registry/docker-compose.yaml +++ b/container-registry/docker-compose.yaml @@ -11,6 +11,7 @@ services: REGISTRY_AUTH_HTPASSWD_REALM: Registry REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data + REGISTRY_HTTP_HOST: https://registry.flowy.live:5443 volumes: - ./auth:/auth - ./data:/data