• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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