A short description of container namespaces, Linux virtual Ethernet interfaces and how to use them in Docker and Open vSwitch to create a self-contained network with hundreds of nodes on a single host machine.
13. Goran Cetušić
13
Docker storage drivers
// Slice of drivers that should be used in an order
priority = []string{
"aufs",
"btrfs",
"devicemapper",
"vfs",
"overlayfs",
}
14. Goran Cetušić
14
Tying it together
sudo docker run -d --privileged --net='none' gcetusic/vroot
sudo docker inspect -f "{{.State.Pid}}" fa41ef950da2
6748
sudo ip link add name hostif type veth peer name guestif
sudo ln -s "/proc/6748/ns/net" "/var/run/netns/6748"
sudo ip link set guestif netns 6748