Docker Community Forums

Share and learn in the Docker community.

Exclusive network interface for docker

amazonwebservices

(Atulyadavtech) #1

Hi team,

Need your guidance to exclusive assign the phyjical interface to docker.

Infra details are given below:-
CentOS release 6.6 (Final)
docker-io-1.7.1-2.el6.x86_64
Network interface 2

Thank You
Atul Yadav


(Alex Wellock) #2

We could use a bit more info on what you are trying to do. I see two possibilities.

  1. You are trying to set the interface for the docket daemon in which case the -H flag is your friend "-H IP of interface:Port to run docker on.
  2. Trying to map a port to a container in this case the -p flag will be your friend. " docker run -p IP:port:port.

You may need to combine both to get the results you are looking for.

I hope that helps!