El día viernes, enero 12, 2024 a las 10:34:58 -0800, Gordon Messmer escribió:
On 2024-01-11 06:35, Jean-Baptiste Ciccolella wrote:
It seems you can't change it. podman/pkg/domain/utils/scp.go at main · containers/podman (github.com) <https://github.com/containers/podman/blob/main/pkg/domain/utils/scp.go#L214>
What happens if you: "echo TMPDIR=/var/tmp >> ~/.ssh/environment" and then try to copy the image?
$ cat ~/.ssh/environment TMPDIR=/home/apitzm/.local/share/containers/tmp The env var is not published to the sshd and sftp-server processes: srap57dxr1:/home/guru # pstree -p 28910 sshd(28910)───sshd(28913)───sftp-server(28914) srap57dxr1:/home/guru # tr '\0' '\n' < /proc/28910/environ | grep TMP srap57dxr1:/home/guru # tr '\0' '\n' < /proc/28914/environ | grep TMP and the temp. file gets created in /tmp -rw------- 1 apitzm apitzm 255459328 Jan 15 07:59 tmp.F9prxDvQgw I freed space in the partition where also /tmp is located and the transfer of the image went fine: $ podman image scp c87c80c0911a srap57:: ... Copying blob 6fc7ff0cb132 done Copying config c87c80c091 done Writing manifest to image destination Loaded image: sha256:c87c80c0911a54c7bee8b15d494d336de93c233b2c87ff04813bc3a6fb5c2f47 On the target host 'srap57dxr1' the image shows as: srap57dxr1:~> podman images REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> c87c80c0911a 5 days ago 6.31 GB and starts fine: srap57dxr1:~> podman run -p 2022:22 c87c80c0911a Starting PostgreSQL: ok Is it intention that the REPOSITORY and TAG information are not transferred from the source: $ podman images REPOSITORY TAG IMAGE ID CREATED SIZE localhost/suse latest c87c80c0911a 5 days ago 6.31 GB registry.suse.com/bci/bci-base 15.4 5bd0e4152d92 3 weeks ago 123 MB docker.io/library/busybox latest 9211bbaa0dbd 3 weeks ago 4.5 MB Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.