Better HN
topnewbestaskshowjobs
Log inSign up

sanimej

2 karma · joined Jul 23, 2015 (11y ago) · 1 submissions

Submissions

comment 10y ago · link · parent

Yes, for ex: docker run -d --name web1 --net prod --net-alias web <webapp> docker run -d --name web2 --net prod --net-alias web <webapp>

resolution for 'web' will return IPs of both the containers. You might still have to watch out for the DNS caching at the application level.