I've created a container using lxc launch ubuntu:16.04
. My host machine is ubuntu 16.04 as well. The container is running:
But when I run lxc-stop
like this:
» lxc-stop ideal-bluejay
I get the output
ideal-bluejay is not running
I think this could be because I used newgrp lxd
after adding myself to lxd
group instead of just logging out and back in again while following ubuntu's lxd guide
I've since logged in and out, and even rebooted the computer. I was able to stop two previously-running containers (surprisingly, they were still running after the reboot, there might be some default checkpointing-and-restore going on). But I'm not able to stop this container which I just launched in this session.
Additional Info: In case if using lxc without logging out after adding myself to lxd group is indeed a problem, then it may help to knowthat I'm not able to destroy the stopped containers either.
On running
» lxc-destroy valid-anemone
I get the output
lxc-destroy: conf.c: userns_exec_full: 4163 No mapping for container root found lxc-destroy: lxccontainer.c: container_destroy: 2707 Error destroying container directory for valid-anemone Destroying valid-anemone failed