Specifying a Temporary Directory of Your Choice
By default, the Docker Images plugin both stores the specified image file and scans its extracted contents in the /tmp directory on the machine where the plugin is installed. However, this directory might not always have sufficient space to process these files.
You have the option to specify a different directory in which to store the image and scan its extracted files. As with the /tmp directory, the artifacts are deleted from this directory once the scan completes. If you choose to specify such a directory, do the following:
-
Provide the directory path with the
-tmpdirtoken as shown in the previous examples. If either the path or the token is missing, the scan fails. -
Specify an absolute path or a path relative to the plugin installation.
-
Do not include spaces in the path as in
/home /admin/Docker2023r/custom_dir. -
Ensure that the path is a valid path on the machine.