How to fix LXC ‘Error: The remote isn’t a private LXD server’


You are trying to launch a LXC container using a command like

lxc launch mycontainer ubuntu:18.04

but you see this error message:


Your command line arguments are in the wrong order. You need to run lxc launch [image] [name of container], not lxc launch [name of container] [image] ! The correct command looks like this:

lxc launch ubuntu:18.04 mycontainer