• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Docker changing local IP?

JorgB

New Pleskian
Hi,

I am running Varnish in a docker container and thats working flawlessly accept that now and then the local ip address seems to change.. It started with 172.17.0.2 and now its at 172.17.0.4. This is a problem since cache won't get emptied for our application when it of course can't reach Varnish. How can I set a static ip for the docker? Or maybe by hostname?

Thanks,
Jorg
 
Last edited:
I guess I found a solution in just being able to use 127.0.0.1 by not using the 80 port but the external one.
 
Back
Top