Introduction to Weave

We learned before that applications running inside Docker have no knowledge of the IP address of the host machine. Hence, they are not in position to register their IP for the service, since another container running outside the host has to use the host IP address for accessing the service.

If an IP address of the host machine is passed as an environment variable, service information can be stored in etcd and read by the service user as illustrated in Chapter 5, Discovering Services Running in Cluster. This approach requires the application code to be aware of how services can be discovered.

Weave simplifies service discovery and does a lot more. Weave provides a mechanism to connect applications running inside a Docker container ...

Get Learning CoreOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.