In short, I am looking to see if it is possible to run multiple Docker containers on the same machine via gcloud's `create-with-container` functionality (or similar). The idea is that there will be some "worker" container (which does some arbitrary work) which runs and completes, followed by a "cleanup" container which subsequently runs performing the same task each time.

### Longer explanation:

I currently have an application that launches tasks that run inside Docker containers on Google Cloud. I use `gcloud beta compute instances create-with-container <...other args...>` to launch the VM, which runs the specified container. I will call that the "worker" container, and the tasks it performs are not relevant to my question. However, regardless of the "worker" container, I would like to run a second, "cleanup" container upon the completion of the first. In this way, developers can write independently write Docker containers that do not have to "repeat" the work done by the "cleanup" container.

**Side note**:

I know that I could alternatively specify a startup script (e.g. a bash script) which starts the docker containers as I describe above. However, when I first tried that, I kept running into issues where the `docker pull <image>` command would timeout or fail for some reason when communicating with dockerhub. The `gcloud beta compute instances create-with-container <...args...>` seemed to have error handling/retries built-in, which seemed ideal. Does anyone have a working snippet that would provide relatively robust error handling in the startup script?