Docker Community Forums

Share and learn in the Docker community.

Force routing the request to single host

I have a sample voting app service deployed in swarm cluster as below
34%20PM

when i try to access the app via 10.23.34.56:8080 , i will be served with app from container id abc and
on second access via same ip , i am being served with app from container id xyz, this is basic swarm load balancing

However is there a way to configure/override in which i can restrict the access to app in host1 only until it goes down , i.e , whenever user tries to access 10.23.34.56:8080 , the app is served from only container abc until it goes down and once it goes down can swarm route request to app in container xyz ?

Regards,
Krishna