I would like to first say I am not a fan of docker however as a developer from time to time using docker in LXD containers helps with testing prebuilt docker images quickly.

I thought I would share my recent experience setting up docker in an LXD environment on an Ubuntu 18.04 image.

Below are the instructions I used to get a docker image running with full internet access.