Closed sometimescool22 closed 5 years ago
go-lxc
drives liblxc
which is the low level C container runtime, it does not interact with LXD which is one level up from go-lxc
.
It sounds like you want to create and interact with LXD containers, to do so, you want to use the LXD REST API and its own Go module at https://godoc.org/github.com/lxc/lxd/client
Ah, ok. Thanks.
Container noob here. Trying to run a modified version of the Create example. Here's my code:
But I'm getting
ERROR: creating the container failed
. I'm on Pop OS (based on Ubuntu 19.04) and have installed lxd with apt follow this. I'm able to start a container withlxc start ubuntu
.Also, the Console example fails with
ERROR: container is not running: "test"
. I've verified withlxc list
thattest
is running.Any help would be great, thanks.