Main Menu

Search

PODMAN: How To Change /var/tmp (imageCopyTmpDir ) Of Podman To Different Directory?

Below are steps to change the podman tmp directory from default /var/tmp location.


1. Set the podman tmp directory to desired directory. In below command example it is /var/tmp/testdir. Change the /var/tmp/testdir directory to directory of your choice.

$ export TMPDIR=/var/tmp/testdir

2. Restart podman and reload daemon.

Below are commands.

$ sudo systemctl daemon-reload

$ sudo systemctl restart podman

3. Validate podman tmp directory is changed to the new directory set.

Use below command.

$ podman info | grep -i tmp

Below is the output you should see which should change the tmp directory location for imageCopyTmpDir parameter

$ podman info | grep -i tmp

  imageCopyTmpDir: /var/tmp/testdir 



Keywords:

Change Changing Update Updating default custom tmp temp temporary directories directories files file modify modifying cache caching

No comments:

Post a Comment