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

when i try to access the app via , 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 , 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 ?