Issue accessing public image server from project

I have this when I try to launch a container:

# incus launch test images:images:ubuntu/24.04/cloud --debug
Error: The remote isn't a private server

I migrated to incus from lxd a few weeks ago, and it is the first time I need to launch a new container since then. Running incus 6.13

# incus remote list
+-----------------+------------------------------------+---------------+-------------------------+--------+----------+--------+
|       NOM       |                URL                 |   PROTOCOLE   | TYPE D'AUTHENTIFICATION | PUBLIC | STATIQUE | GLOBAL |
+-----------------+------------------------------------+---------------+-------------------------+--------+----------+--------+
| images          | https://images.linuxcontainers.org | simplestreams | none                    | OUI    | NON      | NON    |
+-----------------+------------------------------------+---------------+-------------------------+--------+----------+--------+
| local (current) | unix://                            | incus         | file access             | NON    | OUI      | NON    |
+-----------------+------------------------------------+---------------+-------------------------+--------+----------+--------+

Feeling silly : wrong order of the arguments.

1 Like

Indeed, the command is as follows. I think it’s also good to place the --vm (if we want a VM) at the location shown below. Any configuration (i.e. --config) can be placed at the end of the line.

incus launch images:alpine/edge/cloud mycontainer

or, if it’s a VM,

incus launch --vm images:alpine/edge/cloud myvm

The command line for Incus commands tends to get long. Therefore, it’s good to follow a common style to avoid errors.

In addition, if you install the bash-completion package, and your shell is bash, then you can use completion to get the system to fill in the incus command for you.
If you set them up, then you would be able to type the following. That is, you type a bit, and if the completion rule is able to fill in what you are writing, it will do so. You press the TAB key for completion. Note that if double-press the TAB key, you are shown the available command options.

incus la<TAB>
incus launch                <--- completion
incus launch i<TAB>
incus launch images:                     <--- completion
incus launch images:u<TAB>
incus launch images:ubuntu/                                    <-- completion
incus launch images:ubuntu/24.04/c<TAB>
incus launch images:ubuntu/24.04/cloud                                <-- completion
incus launch images:ubuntu/24.04/cloud mycontainer
1 Like