hi, I create an unprivileged container in ubuntu18, it can be created successfully, but start failed, can anyone help where I am wrong?
steps
-
mkdir -p ~/.config/lxc
-
cp /etc/lxc/default.conf ~/.config/lxc/default.conf
-
vi ~/.config/lxc/default.conf
-
added lxc.idmap = u 0 165536 65536
lxc.idmap = g 0 165536 65536 -
lxc-create -t download -n mylxc – --no-valiate
-
choose the distribute such as: Debian stretch amd64
-
lxc-start -n mylxc -d
lxc-start: my: lxccontainer.c: wait_on_daemonized_start: 842 Received container state “ABORTING” instead of “RUNNING”
lxc-start: my: tools/lxc_start.c: main: 330 The container failed to start
What steps I missed? thanks.