I use such code to launch a container:
incus launch "images:debian/13" "my-builder" --storage "my_tmp" --config limits.cpu=2 --config limits.memory=8GiB
But I found it creates more and more container images on the host over time:
$ incus image list local:
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
| | 08d6c3519400 | no | Debian trixie amd64 (20250815_05:24) | x86_64 | CONTAINER | 94.51MiB | 2025/08/15 23:05 CEST |
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
| | 963d4df8af47 | no | Debian trixie amd64 (20250819_05:24) | x86_64 | CONTAINER | 94.51MiB | 2025/08/19 22:10 CEST |
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
| | 44714ee40631 | no | Debian trixie amd64 (20250824_05:24) | x86_64 | CONTAINER | 94.52MiB | 2025/08/24 13:53 CEST |
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
| | dd592eb3a543 | no | Debian trixie amd64 (20250816_05:24) | x86_64 | CONTAINER | 94.51MiB | 2025/08/17 01:08 CEST |
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
| | f834e737cb14 | no | Debian trixie amd64 (20250818_05:24) | x86_64 | CONTAINER | 94.51MiB | 2025/08/18 22:31 CEST |
+-------+--------------+--------+--------------------------------------+--------------+-----------+----------+-----------------------+
I think it creates extra load for a remote server and spends space of my laptop without really need for it.
So I have to use local:963d4df8af47
argument, which doesn’t look nice and readable, and it has to be manually “hardcoded” into a script.
incus launch "local:963d4df8af47" "my-builder" --storage "my_tmp" --config limits.cpu=2 --config limits.memory=8GiB
Question
Is there a way, maybe some option, to fetch an image only once and then use this local copy?
Something like --prefer-local
or --ignore-remote-updates
:
incus launch --prefer-local "images:debian/13" "my-builder" --storage "my_tmp" --config limits.cpu=2 --config limits.memory=8GiB