From c88c01c5a0fbd9dc88950e89e4329b07e5f31533 Mon Sep 17 00:00:00 2001 From: MAHDTech Date: Wed, 19 Jul 2023 13:13:39 +1000 Subject: [PATCH] fix: Isolated Environments --- nix/oci/tanzu/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/oci/tanzu/default.nix b/nix/oci/tanzu/default.nix index 509ceb24..00e610c1 100644 --- a/nix/oci/tanzu/default.nix +++ b/nix/oci/tanzu/default.nix @@ -427,7 +427,9 @@ in ''; config = { - User = containerUser; + # Docker socket needs to be mounted for docker-from-docker + #User = containerUser; + User = "root"; Labels = { "org.opencontainers.image.description" = "tanzu"; }; @@ -440,7 +442,6 @@ in }; Env = [ "CHARSET=UTF-8" - "DOCKER_CONFIG=/home/${containerUser}/.docker" "LANG=C.UTF-8" "LC_COLLATE=C" "LD_LIBRARY_PATH=/lib;/lib/stdenv;/lib/glibc;/lib64;/lib64/stdenv;/lib64/glibc"