Useful for interacting with the various daemons from the host machine. Here's some simple aliasing to go with it:
for x in $(seq 1 9); do
for t in s n server node; do
if [ "$t" == "s" ] || [ "$t" == "server" ]; then
i=10$x
else
i=11$x
fi
alias "d$t$x"="export DOCKER_HOST=\"tcp://172.22.101.$i\"; \$@"
done
done
Stick this in ~/.bash_profile or similar and reap the benefits: ds1 docker ps; dn1 docker ps; dnode2 docker ps; docker ps
Useful for interacting with the various daemons from the host machine. Here's some simple aliasing to go with it:
Stick this in
~/.bash_profile
or similar and reap the benefits:ds1 docker ps; dn1 docker ps; dnode2 docker ps; docker ps