Tried about 30 combinations of the following, not having much luck. My best guess is something like:
2) Put an instance startup script something like
METADATA=http://metadata.google.internal/computeMetadata/v1
SVC_ACCT=$METADATA/instance/service-accounts/default
ACCESS_TOKEN=$(curl -H 'Metadata-Flavor: Google' $SVC_ACCT/token | cut -d'"' -f 4)
docker login -u _token -p $ACCESS_TOKEN https://gcr.io
docker run -d gcr.io/<project id>/<app name>:<hash>
3) Start the instance
On CoreOS, nothing happens from my startup script (side note, how do I see startup script logs on container os?). But if I log in as myself, I can run the commands either as my user or root, and they work (I assume startup scripts run as root)
On ContainerOS, nothing happens from my startup script. Running as myself works, but running as root fails (/root/.config is read-only error).
I have also investigated routes with the gcloud command or the cloud-sdk gcloud docker image without success either.
Any ideas? I would prefer to get it to work on Container-OS, but if not then I guess I will take a solution for CoreOS..