macvlan

Unable to access docker containers from host over macvlan network

给你一囗甜甜゛ 提交于 2021-01-21 04:21:12
问题 In my Linux network I am unable to reach my docker containers from the host they are running on, over a dedicated macvlan network. All other connections from to this macvlan network are fine. So basically the setup is: DOCKER1 eth0 172.0.0.1 (default) | eth1 10.0.0.1 (macvlan) CONTAINER1 10.0.0.11 (macvlan) DOCKER2 eth0 172.0.0.2 (default) | eth1 10.0.0.2 (macvlan) CONTAINER2 10.0.0.12 (macvlan) Host DOCKER1 cannot reach CONTAINER1 Host DOCKER2 cannot reach CONTAINER2 Host DOCKER1 can reach

docker macvlan - no route to host (container)

*爱你&永不变心* 提交于 2020-12-13 05:38:12
问题 Im trying to understand the "macvlan" network from docker. I create a new network: docker network create -d macvlan \ --subnet=192.168.2.0/24 \ --gateway=192.168.2.1 \ -o parent=eno1 \ pub_net And start new container with the new network: docker run --rm -d --net=pub_net --ip=192.168.2.74 --name=whoami -t jwilder/whoami When i try to access the service from the container or ping it i get: curl: (7) Failed to connect to 192.168.2.74 port 8000: no route to host Tested with Ubuntu 16.04, Ubuntu

Docker MACVLAN only works Outbound

試著忘記壹切 提交于 2020-05-13 07:53:05
问题 I'm trying to setup a MACVLAN for my docker containers. I have a fresh Raspbian and Docker installation and followed the steps outlined to the Docker Documentation to create a MACVLAN: https://docs.docker.com/network/network-tutorial-macvlan. The Network looks as follows: [ { "Name": "pub_net", "Id": "782c49f79f549b11f04a6df98b8b2cbf52deef072e036306231309e44a1c9f3a", "Created": "2020-02-25T14:44:12.105402396+01:00", "Scope": "local", "Driver": "macvlan", "EnableIPv6": false, "IPAM": { "Driver

Unable to access docker containers from host over macvlan network

杀马特。学长 韩版系。学妹 提交于 2019-12-04 13:11:29
In my Linux network I am unable to reach my docker containers from the host they are running on, over a dedicated macvlan network. All other connections from to this macvlan network are fine. So basically the setup is: DOCKER1 eth0 172.0.0.1 (default) | eth1 10.0.0.1 (macvlan) CONTAINER1 10.0.0.11 (macvlan) DOCKER2 eth0 172.0.0.2 (default) | eth1 10.0.0.2 (macvlan) CONTAINER2 10.0.0.12 (macvlan) Host DOCKER1 cannot reach CONTAINER1 Host DOCKER2 cannot reach CONTAINER2 Host DOCKER1 can reach DOCKER2 Host DOCKER1 can reach CONTAINER2 Host DOCKER2 can reach DOCKER1 Host DOCKER2 can reach