I wanted to prepare my hosts and make an overlay network. I simply followed the official guide. Everything could be successfully done but when it comes to ping the other container it doesn’t work.
Are you sure all the ports are enabled on the hosts? how did you create the overlay network and how did you start the container? Please, share commands and anything that you used to create the network and the test containers. I know you wrote you followed the official guide, but the only way to be sure you ran every required command if you share everything you did.
I almost forgot, but also share what operating system you are using and how you installed Docker.