Starting docker inside lxd 18.04

I launch a ubuntu 18.04,

lxc launch ubuntu:18.04 first

inside the container

snap install docker

when running docker ps, got:

docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

How to make this run? Thanks,

Read the section
“How do I run Docker inside LXD”

You have to enable nested containers.

Hi, thanks for the reply, it solves the problem, however, it did work if :slight_smile:

apt install

it does not work if:

snap install docker

that’s good enough, thanks