Tag Archives: virtualisation

Run Docker in an LXD container

I’m a fan of Canonical’s LXD containers—which essentially copy the same approach to lightweight virtualisation enjoyed by Solaris Zones users (and by extension, any illumos-based distros such as SmartOS) for over ten years. One area however where Canoncial is playing catch-up compared to commercial UNIX is in incomplete documentation spread out absolutely everywhere—blog posts, articles, wikis, and so on. Trying to find consistent information on the level of support for Docker running in an LXD container is a perfect example of this. It’s a real mess.

At the time of writing, running Docker as installed from the official Docker repository will fail in an LXD container. This is noted in the following two bug reports:

The advice provided in both reports is to use Ubuntu’s Docker packages:

“Only Docker coming from Ubuntu (docker.io package) works inside LXD containers.

“The Docker coming from upstream is missing a number of patches to make it work, leading to the problem you describe above. We’ve been pushing for those changes to be merged upstream and some were, but we’re not yet at a point where the upstream packages work.”

Otherwise, the prerequisite for running Docker in LXD is that the container is launched with the docker profile applied, and is configured as a privileged container (by default, LXC containers are unprivileged). In the following example, the nextcloud-dev-1 container is created with the default and docker profiles applied, and its configuration is set to be privileged:

$ sudo lxc launch ubuntu:16.04 nextcloud-dev-1 -p default -p docker -c security.privileged=true

Post installation, log into the container and install the Ubuntu Docker package:

$ sudo apt install docker.io

From there, Docker should work as expected.

More on privileged containers is here:



Oracle nukes Sun Ray and VDI

I shouldn’t be surprised, but still: Oracle to halt development of Sun virtualization technologies

What’s really, really rich was one of Oracle’s own folks only a couple of months ago stating the following on the Sun Ray Users mailing list:

“Oracle does not keep acquired products that they do not believe have a future. I’d challenge you to compare release timelines from both Sun and Oracle and see under which flag the product has had more major releases and more features. If Oracle was not committed to Sun Ray and VDI, it would have been gone very soon after the acquisition.

I can tell you Oracle is committed to Sun Ray and VDI. I get that people are unhappy with some of the changes (Firmware requiring a support contract, Public road maps, social media changes), but those things have very little bearing on whether or not Oracle is committed.”


At the day job we migrated from Sun Ray onto Onelan for our digital signage needs, and after that my contact with either Sun Ray or Solaris dropped to zero. Still, sad to see what was a fantastic platform kicked to the curb, joining the myriad other Sun products and projects which Oracle has bungled, mismanaged, or ejected – presumably to support the unbelievably crass lifestyle of the guy ostensibly running the joint. Sad times.

Sun Ray installation