GCloud Deployment Issues with Gloud Run and Cloud Build “Container terminated due to sandbox error.”
If you are running in the problem of “Container terminated due to sandbox error.”. There are a few problems, which can go wrong but what helped for me was the following.
In my CI Pipeline, I was building a Dockerfile with cloud build. Unfortunately I had the following code in the Dockerfile:
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_x86_64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init
ENTRYPOINT [“dumb-init”, “ — “]
This code resolved in the error.
Remove the lines with the “ENTRYPOINT” from your docker file and if you still need them use cloud run’s “— init” argument to reap zombie processes to have `dumb-init` as PID 1.