[kwlug-disc] Running Docker in LXD

Mikalai Birukou mb at 3nsoft.com
Fri Dec 21 23:02:21 EST 2018


Yes. This is possible using configuration security.nesting=true: 
https://stgraber.org/2016/04/14/lxd-2-0-lxd-in-lxd-812/

No, it is not an insanity.

Use case is simple. We want to have gitlab and gitlab runner on the same 
machine. But we want all these things setup cleanly and separately, so 
we use LXD. From Gitlab's docs we learn that Docker executor is the best 
( 
https://docs.gitlab.com/runner/executors/README.html#compatibility-chart 
). Hence a need to run Docker inside LXD.

This is fun :)





More information about the kwlug-disc mailing list