From b091d0a70794bedf95700a94efe79e3117681399 Mon Sep 17 00:00:00 2001 From: Dawid Kulikowski Date: Mon, 8 May 2023 21:21:38 +0200 Subject: [PATCH] Use the --env flag of podman to set HOME to the home of the caller, not root Signed-off-by: Dawid Kulikowski --- src/cmd/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/create.go b/src/cmd/create.go index c50460a87..dbe919871 100644 --- a/src/cmd/create.go +++ b/src/cmd/create.go @@ -426,6 +426,7 @@ func createContainer(container, image, release, authFile string, showCommandToEn "--volume", homeDirMountArg, "--volume", toolboxPathMountArg, "--volume", runtimeDirectoryMountArg, + "--env", fmt.Sprintf("HOME=%s", currentUser.HomeDir), }...) createArgs = append(createArgs, avahiSocketMount...)