On the isolated_nw which was user defined, the Docker network feature updated the /etc/hosts with the proper name resolution. Inside of container2 it is possible to ping container3 by name.
-
https://docs.docker.com/engine/userguide/networking/work-with-networks/