Docker Hardened Image fails to load on Cloud Run

Hello everyone,

I’ve been testing the new hardened Tomcat images from dhi.io/tomcat. They run fine in my local Docker daemon, but the container fails to start when deployed to Google Cloud Run.

The only message I see in Log-Explorer:

Revision is not ready and cannot serve traffic. Container import failed: “ContainerImageImportFailed”

For comparison, the DOI image works without issues in the same setup.

The only change I made was in my Maven Jib configuration, switching the base image:

            <plugin>
				<artifactId>jib-maven-plugin</artifactId>
				<version>3.5.1</version>
                <configuration>
					<from>
                        <!-- <image>tomcat:11.0.15-jre25</image> -->
                        <image>dhi.io/tomcat:11.0.15-jdk25-dev</image>
                    </from>
                    ...

Has anyone here worked with these images on Cloud Run?

Also, is there a way to get more detailed error messages about why the container import is failing?

Any insights would be appreciated. Thanks!

1 Like