Et pour être root :
docker exec -it --user root
How do I create a container?
The basic work flow to creating a container is simple:
Build rootfs --> Import container --> Use Container
Creating the rootfs
You can use all sorts of tools to create the root FS as well.
Brian's example used Buildroot to create a root FS and that's what I'll do here.
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT]
Tutoriel sur l'utilisation de LXC (je teste Docker mais LXC semble plus apte à remplir mes exigences...)
docker run -a stdin -a stdout -i -t debian-sshd /bin/bash