Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4_Test_Container_for_Pipelines.md => constantly restarting docker image #10

Open
nick-youngblut opened this issue Sep 19, 2023 · 1 comment

Comments

@nick-youngblut
Copy link

I created Cloud Compute VM with registry.hub.docker.com/lynnlangit/blastn used for Container image in the Deploy image VM config options. All other VM config options were set to default.

When I ssh onto the VM and run docker ps, I see that the container is constantly restarting every ~1 minute. The same occurs if I use a number of different Docker images (public or from my GCP Artifact Registry). The VM logs do not provide any insight into why the docker image is restarting. I've tried explicitly setting the container command to /bin/bash or used custom containers with either and ENTRYPOINT or CMD set to /bin/bash. No matter why I try, the container constantly restarts in the VM.

If I change the restart policy to never, then docker ps shows nothing. So, it appears that the container is either just running /bin/bash and then ending (and then restarting, with the always container restart policy) or the container is failing without even running /bin/bash. Again, the VM logs do not provide useful info on what is going on.

It would be great to have some info in the docs about how to use a VM in a container (via specifying the container in the VM setup) and docker attach.

@nick-youngblut
Copy link
Author

In regards to using an OS-Optimized container and then pulling a Docker image after starting up the VM (as in the video), the OS-Optimized containers do not have gcloud or gsutil installed. apt-get is not available in the image, so gcloud cannot be installed that way. Installing gcloud via ./google-cloud-sdk/install.sh results in module not found errors.

Without availability of gsutil (or gcsfuse), the VM is rather limited, if one wants to use data from GCP Cloud Storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant