v0.5.2
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAluqSQ4ACgkQGPNoXAAi
v/N5pw/+JN2bg2dMc83GkJF/ozHxYK9VzPUIwLTpPGCn1bDGoVA8OOzQ63nJJjOa
CZ+6+VmSX/51tdLUOn4hOpqOCI+xx1CqnZytqFYkC9doyCZmFiPIlIYswMI449VJ
Rg+3jkHYoXlpoqAALqD134bB8ONHFQrUXGXLQHunYjc2zaas/xs0MB5cwgIIga5H
WOkX9CAnzW9UO1oT0GaM1RATFse0BRBYxvrMNlRcATGktUfUfB9CUC0Pv1hps3Al
JoI7W5gzLVTvnLvl4c475IwwPeF3td1hwFtSb79RMSx+i2AUypCWPXtNMJvKkxmV
EBLWBgqUz4vydUnO/l4FY2q7Z05QaAuH5SkCAtsirUjGi3tAzIKix6VrDuC7ICnF
ZFCDlYuwMlfgZViynX7YBsEDYaiKng74LRO8vfLZHOpk7B6Bne0tL+bB0IWvrgci
ICSkVnJoE+96+OMBmYxTvjcPHYO/XUJYDe70cJoFz3uZuDRRYZ3Zbn1Pck3e6RPK
cWcSKSIiC/d2a0d0uxDpyZK/J1/c3f8BaKcTMvVC4V6nOqvIeyiV9Gs1egOurf5a
KY1N0rro87XZCrNaLesBAaDasAs+XYUCIuP3XhWpEOK8bUNcWTy/TpYKRb83RHX1
uvWLjI3yEeQaHmaKzt31CgwlRPpZI2DxnjYb9aEdPYP15qgn8iI=
=ow3u
-----END PGP SIGNATURE-----
Bump version to v0.5.2

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
1 file changed
tree: abb2c2cf320f8e30d6b6a16b6a65b91e6cefe49a
  1. .gitignore
  2. .goosarch
  3. .travis.yml
  4. .traviskey
  5. Dockerfile
  6. Gopkg.lock
  7. Gopkg.toml
  8. LICENSE
  9. Makefile
  10. README.md
  11. VERSION.txt
  12. basic.mk
  13. bridge/
  14. create.go
  15. list.go
  16. main.go
  17. netutils/
  18. network/
  19. remove.go
  20. vendor/
  21. version/
README.md

netns

Travis CI GoDoc Github All Releases

Runc hook for setting up default bridge networking.

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/genuinetools/netns

Usage

$ netns -h
netns -  Runc hook for setting up default bridge networking.

Usage: netns <command>

Flags:

  --ipfile     file in which to save the containers ip address (default: .ip)
  --mtu        mtu for bridge (default: 1500)
  --state-dir  directory for saving state, used for ip allocation (default: /run/github.com/genuinetools/netns)
  --bridge     name for bridge (default: netns0)
  -d           enable debug logging (default: false)
  --iface      name of interface in the namespace (default: eth0)
  --ip         ip address for bridge (default: 172.19.0.1/16)

Commands:

  create   Create a network.
  ls       List networks.
  rm       Delete a network.
  version  Show the version information.

Place this in the Hooks.Prestart field of your runc config.

{
    ...
    "hooks": {
        "prestart": [
            {
                "path": "/path/to/netns"
            }
        ]
    },
    ...
}

List network namespaces

$ sudo netns ls
IP                  LOCAL VETH          PID                 STATUS
172.19.0.3          netnsv0-21635       21635               running
172.19.0.4          netnsv0-21835       21835               running
172.19.0.5          netnsv0-22094       22094               running
172.19.0.6          netnsv0-25996       25996               running