如何修复 LXC 'Error: The remote isn't a private LXD server'

问题:

你正在尝试使用类似这样的命令启动 LXC 容器

lxc_launch_example.sh
lxc launch mycontainer ubuntu:18.04

但你看到此错误消息:

解决方案

你的命令行参数顺序错误。你需要运行 lxc launch [image] [name of container],而不是 lxc launch [name of container] [image]!正确的命令看起来像这样:

lxc_launch_correct.sh
lxc launch ubuntu:18.04 mycontainer

Check out similar posts by category: LXC