<ahref="https://www.docker.com/"class="urlextern"title="https://www.docker.com/"rel="nofollow">Docker</a> permet de lancer une application dans un conteneur.
</p>
<p>
On peut trouver des images Docker pour LemonLDAP::NG dans ce dépôt : <ahref="https://hub.docker.com/r/coudot/lemonldap-ng/"class="urlextern"title="https://hub.docker.com/r/coudot/lemonldap-ng/"rel="nofollow">https://hub.docker.com/r/coudot/lemonldap-ng/</a>
See also this github project: <ahref="https://github.com/LemonLDAPNG/lemonldap-ng-docker"class="urlextern"title="https://github.com/LemonLDAPNG/lemonldap-ng-docker"rel="nofollow">https://github.com/LemonLDAPNG/lemonldap-ng-docker</a>
<liclass="level1"><divclass="li"> Ajouter auth.example.com/manager.example.com/test1.example.com/test2.example.com dans /etc/hosts de la machine hôte</div>
</li>
</ul>
<preclass="code">echo "127.0.0.1 auth.example.com manager.example.com test1.example.com test2.example.com" | sudo tee -a /etc/hosts</pre>
<ul>
<liclass="level1"><divclass="li"> Faire correspondre le port 80 du conteneur avec le port 80 de la machine (option -p)</div>
</li>
<liclass="level1"><divclass="li"> Ajouter reload.example.com dans /etc/hosts du container (option –add-host)</div>
</li>
</ul>
<preclass="code">docker run -d --add-host reload.example.com:127.0.0.1 -p 80:80 coudot/lemonldap-ng</pre>
<p>
Se connecter ensuite à l'adresse <ahref="http://auth.example.com"class="urlextern"title="http://auth.example.com"rel="nofollow">http://auth.example.com</a> avec un navigateur et se connecter avec dwho/dwho.