Docker Community Forums

Share and learn in the Docker community.

Use dedicated IP addresses for docker containers

I am wondering if I can use dedicated IP addresses from my subnet to assign to docker containers instead of using http://dockerhost:port# I have read some guides stating that you can do this but they are not very specific in anyway. My docker setup is running on Ubuntu Server 21.04 and I user portainer to interface with docker.