Consider a container optimized VM in a Google Cloud Platform environment.
One can enter the VM:
gcloud compute ssh __machine__
To enter the running container, this is getting more tricky:
CONTAINER=`gcloud compute ssh __machine__ --command 'docker ps -q | head -1'`
gcloud compute ssh machine --container $CONTAINER
This is already ugly enough and in comparison to entering the container with docker exec -it bash, this starts with sh instead of bash.
Is there a way to simplify the command above and to launch bash by default?