A base image to add link local route to a vswitch.
docker build -t rawmind/alpine-link-local:<version> .
0.1-2
(Dockerfile).
- DESTINATION_IP # Mandatory: Set the destination ip.
- BRIDGE # Mandatory: Set the vswitch to set the route.
- KEEP_ALIVE="0" # Set to 1 to keep container alive. (to run in k8s)
This image basically, add a net route to a vswitch. It's specially thought to add link local ip routes to a host.
docker run -t \
-e "DESTINATION_IP=169.254.169.251" \
-e "BRIDGE=docker0" \
--cap-add NET_ADMIN \
--network=host \
rawmind/alpine-link-local:<version> .