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

问题:

你想使用 lxc launch 启动 lxc 容器,但你收到此错误消息:

error_message.txt
Error: The remote isn't a private LXD server

解决方案

你正在使用类似这样的命令:

lxc_launch_wrong_args.sh
lxc launch mycontainer ubuntu:18.04

交换了容器名镜像参数!正确的命令如下:

lxc_launch_correct_args.sh
lxc launch ubuntu:18.04 mycontainer

Check out similar posts by category: Container, Linux, LXC