Skip to main content

Docker Notes

MACVLAN

This enables communication between the docker containers on the macvlan network and on the container network.

ip link add mac0 link ens192 type macvlan mode bridge
ip addr add 10.0.0.127/24 dev mac0
ifconfig mac0 up
ip route add 10.0.0.128/26 dev mac0

Updating restart policy

docker update --restart=always <container-name>