Docker Community Forums

Share and learn in the Docker community.

How can I set the ip address of the container?


(Babak4) #1

Hi,

I’ve installed docker on Oracle Linux 6.7 UEKR4 but I can’t start a container on a specific ip address, according to the log change for docker 1.1.

When I run the following command

“docker run --ip=“172.17.0.10” ubuntu ifconfig”

I get:

“flag provided but not defined: --ip
See ‘docker run --help’.”

and there is no mention of “–ip” option when I run the --help option!

Are the “new networking features for 1.1” even released yet?

Regards,
Babak.


(Babak4) #2

Sorry guys, I had not installed the docker engine properly. It’s sorted now.