-
Notifications
You must be signed in to change notification settings - Fork 15
Dedicated Interface Containers
Mark Feit edited this page Dec 14, 2021
·
4 revisions
This page describes the steps necessary to set up a perfSONAR Docker container that directly uses on of the host's physical interfaces.
This has been tested on 100 Gb/s interfaces and shows negligible loss of performance over bare metal.
The container will be bound to physical interface eth1
and use IPv4 block 192.0.2.0/24
and IPv6 block 2001:db8::/32
.
NOTE: Docker does not currently support IPv4 /31s but should in release 21.
docker network create -d macvlan \
--ipv6 \
--subnet=192.0.2.0/24 \
--gateway=192.0.2.1 \
--subnet=2001:db8::/32 \
--gateway=2001:db8::1 \
-o parent=eth1 \
host-eth1
docker run -d --restart unless-stopped \
--name=my-container \
--hostname=my-container.example.net \
--cpuset-cpus="12,13,14,15,16,17,36,37,38,39,40,41" \
--memory=32g \
--memory-swap=32g \
--memory-swappiness=0 \
--network=host-eth1 \
--ip=192.0.2.1 \
--ip6=2001:db8::2 \
perfsonar/testpoint:v4.4.0