4 ms·
When I first starting working with docker I'd use the docker inspect $CONTAINER | grep -i VAR pattern alot until I discovered that you can do use the con
by thedevopsguy 12y ago
When I first starting working with docker I'd use the
docker inspect $CONTAINER | grep -i VAR
pattern alot until I discovered that you can do use the container name and do go with:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' replset1
Service discovery and docker is still a pain point with the technology. Serf [1] and etcd [2] are tools that manages a cluster of services and helps solve the problem described in the article.
[1] Serf is by the guys behind Vagrant. - http://www.serfdom.io/ http://www.serfdom.io/
[2] etcd - http://coreos.com/using-coreos/etcd/ http://coreos.com/using-coreos/etcd/