Multiple ip on same interface in Docker container

Keywords´╝Ü linux docker networking ip


Is that possible to have multiple IPs on eth0 in a Docker container?

I would like having 5 IPs on eth0 in a Docker container interface. I am using "ip" utility. Executing ip address add dev eth0 in the container give "Operation not permited.

  • I tried manually log to the container as root user using "sudo exec -u root ..".
  • I have even tried apt-install sudo in the container. Result is same "Operation not permitted"