Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 2.05 KB

README.md

File metadata and controls

49 lines (39 loc) · 2.05 KB

Container

simple container implementation in go.

Material

1, Unprivileged containers on Go.

2, Docker implemented in around 100 lines of bash.

3, Code to accompany the "Namespaces in Go" series of articles.

4, Shell script to create network namespace.

5, Iptables

Network

set dns resolver in container:

echo "nameserver 8.8.8.8" >> /etc/resolv.conf

set ip forward in host:

sysctl -w net.ipv4.ip_forward=1

Run

make config
make build
make run

after this, you can ping google.com, this should work.