Ingress Load Balancing
Learn about ingress mode and host mode for publishing Docker services.
We'll cover the following...
Please note that this section only applies to Docker Swarm.
Types of mode
Swarm supports two ways of publishing services to external clients:
Ingress mode (default)
Host mode
External clients can access ingress mode services via any swarm node — even nodes not hosting a service replica. However, they can only access host mode services via nodes running replicas. The figure below shows both modes.
Press + to interact
Ingress mode is the default, meaning any time you create a service with -p
or --publish
, Docker will publish it in ingress mode. If you want to publish a service in host mode, you’ll need to use the ...