From c2524c5eb25cf129560cf9094440ba6c35c49d42 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 20 Apr 2023 17:17:18 -0600 Subject: [PATCH] Add DOCKER_HOST inheriting from the caller, to build environment --- app/build_containers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build_containers.py b/app/build_containers.py index 5e8495cb..fd25839b 100644 --- a/app/build_containers.py +++ b/app/build_containers.py @@ -90,6 +90,7 @@ def command(ctx, include, exclude, force_rebuild, extra_build_args): "CERC_CONTAINER_BASE_DIR": container_build_dir, "CERC_HOST_UID": f"{os.getuid()}", "CERC_HOST_GID": f"{os.getgid()}", + "DOCKER_HOST": os.environ["DOCKER_HOST"], # TODO add check for DOCKER_HOST not set at all "DOCKER_BUILDKIT": "0" } container_build_env.update({"CERC_SCRIPT_DEBUG": "true"} if debug else {})