Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker run
- --net="none"
- --lxc-conf="lxc.network.type = veth"
- --lxc-conf="lxc.network.ipv4 = 192.168.1.3/24"
- --lxc-conf="lxc.network.ipv4.gateway = 192.168.1.254"
- --lxc-conf="lxc.network.link = br0"
- --lxc-conf="lxc.network.name = eth0"
- --lxc-conf="lxc.network.flags = up"
- -d [Docker Image ID]
- auto eth0
- iface eth0 inet manual
- auto br0
- iface br0 inet static
- address 192.168.1.2
- netmask 255.255.255.0
- gateway 192.168.1.254
- bridge_ports eth0
- bridge_stp off
- bridge_fd 0
- bridge_maxwait 0
- docker run
- -d
- --net="none"
- --lxc-conf="lxc.network.type = veth"
- --lxc-conf="lxc.network.link = br0"
- --lxc-conf="lxc.network.flags = up"
- --name="$PROJECT_NAME"
- $CONTAINER_IMAGE
- /bin/bash
- auto dhcpBr0
- iface dhcpBr0 inet dhcp
- bridge_ports eth0
- bridge_stp off
- bridge_fd 0
- bridge_maxwait 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement