Environment
- 5.10.0-kali7-amd64
- lxd version 4.14 (from snap)
- cgroup V2
- docker version 20.10.2
Per readthedocs :
In order to run Docker inside a LXD container the
security.nesting
property of the container should be set totrue
.
Docker run (in container):
$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
b8dfde127a29: Pull complete
Digest: sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown
Container logs:
Jun 2 16:04:28 docker systemd-networkd[176]: vethd95335d: Link UP
Jun 2 16:04:28 docker networkd-dispatcher[207]: WARNING:Unknown index 3 seen, reloading interface list
Jun 2 16:04:28 docker systemd-udevd[2637]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jun 2 16:04:28 docker systemd-udevd[2637]: Using default interface naming scheme 'v245'.
Jun 2 16:04:28 docker systemd-udevd[2638]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jun 2 16:04:28 docker systemd-udevd[2637]: veth06e9a85: Could not generate persistent MAC: No data available
Jun 2 16:04:28 docker systemd-udevd[2638]: Using default interface naming scheme 'v245'.
Jun 2 16:04:28 docker systemd-udevd[2638]: vethd95335d: Could not generate persistent MAC: No data available
Jun 2 16:04:28 docker containerd[905]: time="2021-06-02T16:04:28.479986977Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/93248ab0298f22d8899d8f9d51335962b37a7baeaa39b054ef929389dbc74703 pid=2654
Jun 2 16:04:28 docker systemd[1]: Started libcontainer container 93248ab0298f22d8899d8f9d51335962b37a7baeaa39b054ef929389dbc74703.
Jun 2 16:04:28 docker systemd[1]: docker-93248ab0298f22d8899d8f9d51335962b37a7baeaa39b054ef929389dbc74703.scope: Succeeded.
Jun 2 16:04:28 docker containerd[905]: time="2021-06-02T16:04:28.548994221Z" level=info msg="shim disconnected" id=93248ab0298f22d8899d8f9d51335962b37a7baeaa39b054ef929389dbc74703
Jun 2 16:04:28 docker dockerd[1118]: time="2021-06-02T16:04:28.549253741Z" level=error msg="stream copy error: reading from a closed fifo"
Jun 2 16:04:28 docker dockerd[1118]: time="2021-06-02T16:04:28.549286841Z" level=error msg="stream copy error: reading from a closed fifo"
Jun 2 16:04:28 docker systemd-networkd[176]: vethd95335d: Link DOWN
Jun 2 16:04:28 docker systemd-networkd[176]: rtnl: received neighbor for link '4' we don't know about, ignoring.
Jun 2 16:04:28 docker systemd-networkd[176]: rtnl: received neighbor for link '4' we don't know about, ignoring.
Jun 2 16:04:28 docker dockerd[1118]: time="2021-06-02T16:04:28.722331441Z" level=error msg="93248ab0298f22d8899d8f9d51335962b37a7baeaa39b054ef929389dbc74703 cleanup: failed to delete container from containerd: no such container"
Jun 2 16:04:28 docker dockerd[1118]: time="2021-06-02T16:04:28.722363971Z" level=error msg="Handler for POST /v1.41/containers/93248ab0298f22d8899d8f9d51335962b37a7baeaa39b054ef929389dbc74703/start returned error: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown"