I am experimenting with connecting containers to specific physical networks. So far I have done some tests with macvlan, however I hit some problems there. First I have created a docker network with:
docker network create -d macvlan
-o parent=ens160 wan
Started the container:
docker run -d \ --name=telegraf-wan \ --network=wan \ --restart=always \ telegraf:wan
Unfortunately I can not ping hosts in wan nor I can ping the GW of the docker network [172.16.10.12]
What I am doing wrong?