Skip to content

Commit

Permalink
fix: Isolated Environments
Browse files Browse the repository at this point in the history
  • Loading branch information
MAHDTech committed Jul 19, 2023
1 parent c1de82f commit c88c01c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nix/oci/tanzu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand All @@ -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"
Expand Down

0 comments on commit c88c01c

Please sign in to comment.