-
Because we hooman seems to forget stuff a lot
this is just a notes for reminder of docker command line i use -
When you need to run a container on privileged mode
docker run --name l33tcnt --hostname l33tcnt -it --privileged debian:stable /bin/bash -l
-
When you need to assign more than one bridge to your container, let say you want a container to be able to
communicate with your host private network at eth1
brctl addbr br0
brctl addif br0 eth1
ifconfig br0 192.168.5.1/24 up
docker network create --driver bridge --ip-range 192.168.5.2/24 --subnet 192.168.5.0/24 l33tpriv
docker network connect l33tpriv l33tcnt