Is there a way how to run LXD inside Docker?

梦想与她 提交于 2019-12-06 12:00:17

It is possible to run lxc inside docker, so it should also be possible to run lxd. The error indicates that you need to add the line

lxc.aa_allow_incomplete = 1

to your container config.

I did a proof of concept that shows how an lxc container can easily be run within a docker container: https://github.com/micw/docker-lxc-demo

No.

LXD/LXC provide a full-stack Linux environment. Docker is an engine that allows you wrap up application and dependencies.

Docker provides a constrained environment that deliberately disables certain OS features relating to networking and storage persistence.

You can run Docker inside LXD/LXC containers (in fact Docker used to use LXC as its underlying technology - may still do), but you would not run LXC containers inside a Docker container.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!