Docker how to set --net=host on aws red hat ec2 Docker how to set --net=host on aws red hat ec2 kubernetes kubernetes

Docker how to set --net=host on aws red hat ec2


Host networking (--net=host) is a per container setting rather than a Docker daemon setting, used on docker create or docker run

docker run --net=host --detach me/myimage 

Be aware that this gives the container full access to the hosts network.