Currently, ./yak bash gets you a bash shell in the app container. Keep that command & deprecate it, then add command ./yak shell [container [command]] where container is optional and defaults to app. This allows a convenient shortcut to get a shell in any of the known containers defined in docker-compose.yml:, like ./yak shell mongo for a shell or ./yak shell mongo mongo for the mongo client.
From @matthewadams on November 17, 2016 17:23
Currently,
./yak bash
gets you abash
shell in theapp
container. Keep that command & deprecate it, then add command./yak shell [container [command]]
wherecontainer
is optional and defaults toapp
. This allows a convenient shortcut to get a shell in any of the known containers defined indocker-compose.yml
:, like./yak shell mongo
for a shell or./yak shell mongo mongo
for the mongo client.Copied from original issue: SciSpike/yaktor#36