<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 17, 2018 at 7:27 AM, Sunil Mohan Adapa <span dir="ltr"><<a href="mailto:sunil@medhas.org" target="_blank">sunil@medhas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Tuesday 16 January 2018 11:26 PM, Dashamir Hoxha wrote:<br>
> Hi,<br>
><br>
> I have created a GSoC project about installing FreedomBox<br>
> in a Docker container:<br>
> <a href="https://wiki.debian.org/SummerOfCode2018/Projects/FreedomBoxContainer" rel="noreferrer" target="_blank">https://wiki.debian.org/<wbr>SummerOfCode2018/Projects/<wbr>FreedomBoxContainer</a><br>
><br>
> If anyone would like to be a co-mentor I would appreciate it.<br>
<br>
</span>Please evaluate the suitability of docker for running FreedomBox.<br>
FreedomBox requires systemd, firewalld, network-manager, certbot etc. to<br>
be working properly.  From what I know, docker is more oriented to run a<br>
single daemon inside a single process. This is the reason we chose to<br>
run our development box using VirtualBox/vagrant instead.<br></blockquote><div><br></div><div>That's right, docker can run only one process. But here comes my great</div><div>discovery: what if we run `/sbin/init` itself inside docker? All the daemons</div><div>that you mention would work fine.</div><div><br></div><div>No, I am not making guesses and assumptions, I have been doing it for</div><div>years and it works great. There are a few tricks, for example for running systemd</div><div>inside a container, but docker is much more flexible that people usually think</div><div>and it can handle them.</div><div><br></div><div>For example look at this: <a href="https://github.com/docker-scripts/moodle">https://github.com/docker-scripts/moodle</a></div><div>Moodle also requires systemd, apache2, mariadb, etc. to run properly.</div><div>Here is an example of Moodle running in a container: <a href="https://ocw.fs.al">https://ocw.fs.al</a></div><div>What do you think about it?</div><div><br></div><div>Dashamir</div></div></div></div>