Docker service IP

Does Docker have any way to give each container its own IP address? Or must it share the host IP?

Looking for ways to run more than one service that uses the same port on the same host.

Each container has its own IP address. It is just on an other level. It is similar to a LAN with tens of computers in which all of the computers can be accessed through the gateway having one IP address. You should search for “reverse proxy”. You can use Traefik or Nginx Proxy for example but there ae other tools as well.

1 Like