v0.5.3
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAlws/lQACgkQGPNoXAAi
v/MI7RAAytuFyFUo1CWbCBOx2BS9/waEx2lr7OiecRV1NDLDvdzkPAAh096FZ9z+
95MZT7BIz6Ebu8y6SuCTgPCJX5bDjhLARVz/gXTld842rdsm+qdXI45R9hLUA+y5
mIaKGAa7G/CFlVMlv14zbyk2V33iVhPe3s1Q0N6oOnWcj4QAw9CxABhHETDHd1B4
dsLHP8RG3aa2sKNIZnSIiARMHi4APqLX8rxJQBVl26M5EcYR9jDvhZ65een2RL+e
0zfGRY5CX7bFnwW3+TrCysfWaor5zpKNSQdAf4BGKxWTZnkzYz5kSPU37Pf3iKg1
9F8RAD8EixGzKxfxY0Mf1HFGXO2DHFL1JRJJBn706ClmTLBUEEtbUcaEsnT5tAh8
uYuYzyCZgVAYf7Ze6gACdT9ybRyczGMs0HeVtRpfi0wrOL2sgFHOtLZ8Zalvh+xo
EJQRLIdMsXIFGCJkEQqsJUnPfiKXpUfwqjj+IpZSVilrg1+8ynJUzJRi0MEYyJN5
WeodnWjzx1yfSUnO+1hIMROyqf3hbVdXSqMRWZWhCQyI28d9EY4PzdIS3AyER390
RwPxb3LkrTYOeqDPb/RIjJsxJrLW1PDBZphRyOUzQzVoFrS/GX0v3Rk3XQhwwYP8
p5fiWum6e+7yzkxmSkNTGizEDtEMw0TUbejz19u0tHvkeSKb4rE=
=geHP
-----END PGP SIGNATURE-----
Bump version to v0.5.3

Signed-off-by: Jess Frazelle <acidburn@github.com>
1 file changed
tree: 7a9bd0883740034e92aca06700672fb91ddd3792
  1. .gitignore
  2. .goosarch
  3. .travis.yml
  4. .traviskey
  5. Dockerfile
  6. LICENSE
  7. Makefile
  8. README.md
  9. VERSION.txt
  10. basic.mk
  11. bridge/
  12. create.go
  13. go.mod
  14. go.sum
  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