container

command module
v0.0.0-...-0e8a405 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 10 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL