diff --git a/docker.md b/docker.md index d3a46f35..4c0b2006 100644 --- a/docker.md +++ b/docker.md @@ -54,8 +54,8 @@ You will then be able to [postinstall](/postinstall) all this by entering the co **Notice:** You may want to forward some of your container's ports, find more information or these pages: -* http://docs.docker.io/reference/commandline/cli/#run -* http://docs.docker.io/use/port_redirection/#port-redirection +* http://docs.docker.com/reference/commandline/cli/#run +* http://docs.docker.com/userguide/dockerlinks/ --- @@ -85,12 +85,15 @@ iptables -t nat -A POSTROUTING -s '/32' -o eth0 -j SNAT --to-sourc ```bash # You will need: # * your container's ID -docker ps -notrunc | grep yunohost +docker ps --no-trunc | grep yunohost # * your container's PID -cat /var/lib/docker/execdriver/native//pid +docker ps -q | xargs docker inspect --format '{{.State.Pid}}' # * `util-linux` package apt-get install util-linux || pacman -S util-linux # Run the nsenter command with the right parameters nsenter --target --mount --uts --ipc --net --pid /bin/bash + +# Otherwise, with docker +docker run -t -i yunohost:init /bin/bash ``` diff --git a/docker_fr.md b/docker_fr.md index c422a60c..9a70fcce 100644 --- a/docker_fr.md +++ b/docker_fr.md @@ -53,8 +53,8 @@ Cette commande lancera un conteneur sur la base de l'image `yunohost`, tag `init **Remarque :** vous pourrez avoir besoin de forwarder certains ports de votre conteneur docker, pour cela consultez les pages de documentation suivantes : -* http://docs.docker.io/reference/commandline/cli/#run -* http://docs.docker.io/use/port_redirection/#port-redirection +* http://docs.docker.com/reference/commandline/cli/#run +* http://docs.docker.com/userguide/dockerlinks/ --- @@ -84,12 +84,14 @@ iptables -t nat -A POSTROUTING -s '/32' -o eth0 -j SNAT --t ```bash # Vous avez besoin : # * de votre ID de conteneur -docker ps -notrunc | grep yunohost +docker ps --no-trunc | grep yunohost # * du PID de votre conteneur -cat /var/lib/docker/execdriver/native//pid +docker ps -q | xargs docker inspect --format '{{.State.Pid}}' # du paquet `util-linux` apt-get install util-linux || pacman -S util-linux - # Lancez la commande nsenter avec les paramètre kivonbien© nsenter --target --mount --uts --ipc --net --pid /bin/bash + +# Sinon, avec docker +docker run -t -i yunohost:init /bin/bash ```