-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use 'podman cp' to copy toolbox.sh to old containers
Copying files into a running container is considered inherently hacky. Rootful Podman can pause a container using 'podman cp --pause ...' during the copy, but that's not possible when used rootless. Secondly 'podman cp' has suffered from a series of regressions lately. First there was the problem with how the --pause flag was handled [1], and then /etc/profile.d/toolbox.sh was getting created as a directory [2], not regular file, by: $ podman cp \ --pause=false \ /etc/profile.d/toolbox.sh \ "$container":/etc/profile.d Try to side-step all that by using $XDG_RUNTIME_DIR as a conduit to share the file with the container and using plain cp(1) to place it in the toolbox container's /etc/profile.d. [1] Commit e715ff2 https://github.com/debarshiray/toolbox/pull/193 [2] containers/podman#3384 https://github.com/debarshiray/toolbox/issues/196
- Loading branch information
1 parent
f16b408
commit 0db5494
Showing
1 changed file
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters