Yes, these are the same steps I tried.
stop_app can perform a few operations but there are other differences as well - when you stop_app, the hostname exists, the IP is there but any connection attempt will fail quickly
because the ports are closed (for AMQP/HTTP and other listeners) or because the app is down (for Erlang RPC communication). When you stop the container - I don't know exactly
what Docker does but it could be that the name still resolves but the IP doesn't respond or the name doesn't resolve so you wait for a DNS timeout. Basically the same difference you
get between REJECT and DROP firewall rules. I'd definitely suggest checking the logs and network-level communication.
Best,