Skip to content

cssivision/container

Repository files navigation

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.

About

simple container implementation in go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published