mise en forme Conteneurs

This commit is contained in:
Sebastien Dubois 2017-06-20 02:29:36 +02:00
parent 16544e52a5
commit 9b624595ea

View file

@ -1119,10 +1119,11 @@ $ cat /proc/drbd
</section> </section>
<section> <section>
<section>
<h2>Conteneur</h2> <h2>Conteneur</h2>
LXC <h3>LXC</h3>
<pre>
# apt install lxc bridge-utils ??libvirt-bin?? debootstrap <code># apt install lxc bridge-utils debootstrap
# lxc-create -t debian -n foo # lxc-create -t debian -n foo
# lxc-start -n foo -d # lxc-start -n foo -d
# lxc-attach -n foo # lxc-attach -n foo
@ -1130,17 +1131,22 @@ LXC
# lxc-info -n foo # lxc-info -n foo
# lxc-console -n foo # lxc-console -n foo
# lxc-halt -n foo # lxc-halt -n foo
# lxc-destroy -n foo # lxc-destroy -n foo</code>
</pre>
Docker </section>
<section>
# apt install docker-engine <h2>Conteneur (suite)</h2>
<h3>Docker</h3>
<pre>
<code># apt install docker-engine
$ docker ps [options] $ docker ps [options]
$ docker run [options] IMAGE [commande] $ docker run [options] IMAGE [commande]
$ docker stop|kill [options] CONTENEUR $ docker stop|kill [options] CONTENEUR
$ docker rm [options] CONTENEUR $ docker rm [options] CONTENEUR
$ docker rmi [options] IMAGE $ docker rmi [options] IMAGE
$ docker exec [options] CONTENEUR COMMANDE $ docker exec [options] CONTENEUR COMMANDE</code>
</pre>
</section>
</section> </section>
<section> <section>