You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run several containers inside of aws fargate task for an application I'm developing. All containers using the fargate service share a network interface, so to replicate this configuration locally I'm trying to use a docker-compose file where my containers are set to use the network=host option.
The containers are able to run as expected but I am not able to access any of the network services they provide. I'm guessing this is because they are sharing a network namespace with the docker engine's hyperkit vm rather than one with my mac computer.
I believe I can query for the hyperkit vm ip with the following command $ docker run --network host alpine ifconfig eth0. However, I still can't access the services using ports against this ip nor can I reach it using the ping command. Is there any way expose this ip when using network=host mode?
Thanks!
The text was updated successfully, but these errors were encountered:
docker engine version: 19.03.8
docker desktop version: 2.2.0.4
hyperkit version: v0.20190802-4-g97f091
I am trying to run several containers inside of aws fargate task for an application I'm developing. All containers using the fargate service share a network interface, so to replicate this configuration locally I'm trying to use a docker-compose file where my containers are set to use the
network=host
option.The containers are able to run as expected but I am not able to access any of the network services they provide. I'm guessing this is because they are sharing a network namespace with the docker engine's hyperkit vm rather than one with my mac computer.
I believe I can query for the hyperkit vm ip with the following command
$ docker run --network host alpine ifconfig eth0
. However, I still can't access the services using ports against this ip nor can I reach it using the ping command. Is there any way expose this ip when usingnetwork=host
mode?Thanks!
The text was updated successfully, but these errors were encountered: