Skip to content

ryderbaus/docker-net-tools-au

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-network-tools

Docker network tools. support floating IP, Network namespace sync, OVS and linux bridge.

Concepts

This scripts are for docker network management script. docker's network is NAT based, but it can be used with just like openstack or something. yup, Float IP.. just DNAT/SNAT to specific container.

You can use docker with OVS(Open-V-Switch) and with Linux-bridge with low level setting. newer Docker can't setup with LXC option, so I need to setup docker with linux namespace.

  • Why bash script?
    • because, It can run within even CoreOS. some Docker based OS doesn't have any support of python or something. so, I have to use bash.

Usages

  • All scripts are requied root permission. because scripts are handling iptables, docker process and linux kernel namespace.

  • Floating IP support

  • Add : docker-floatip-add [FLOAT_IP_WITH_SUBNET] [CONTAINER_ID]

    • ex) docker-floatip-add 10.1.2.3/24 docker_name
  • Delete : docker-floatip-del [FLAOT_IP_WITH_SUBNET]

    • ex) docker-floatip-del 10.1.2.3/24
  • Restore : docker-floatip-restore (Restore whole configuration.)

    • ex) docker-floatip-restore
  • Down/Clean up hole setting : docker-floatip-down

    • ex) docker-floatip-down
  • Linux namespace sync support

  • OVS(openvswitch) support

    • under working
  • linux bridge support

    • under working

About

Docker network tools. support floating IP, Network namespace sync, OVS and linux bridge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%