Test the Overlay Network

Let's test the overlay network we just created.

Let’s test the overlay network with the ping command.

As shown in the figure below, we’ve got two Docker hosts on separate networks, and a single overlay network spanning both. We’ve got one container connected to the overlay network on each node. Let’s see if they can ping each other.

Get hands-on with 1400+ tech skills courses.