Crescendo Lab Docs
English
Sign up

Container runtime contract

The rules a web service's image must follow. Where the platform can adapt an image, it does, and leaves a notice on the version page.

Last updated

Rules#

ItemRequirementIf not met
Start commandA CMD or ENTRYPOINT.The version is refused.
PortServe HTTP on $PORT.Chosen from setting → EXPOSE → 8080; see Project settings.
Platformlinux/amd64.Agent Lab always builds for it.
UserA non-root USER is recommended.Root or no USER runs as uid 10001, group 0. A USER the image doesn't have is refused.
FilesystemRead-only apart from /tmp.Writes elsewhere fail.
Cloud credentialsNone are provided.Use the project's secrets to reach outside services.

When an image runs as uid 10001, the files it reads must be readable by group 0.

Notices#

Changes the platform made to an image show as notices on the version page. AI tools read the same codes from the deploy status.

CodeMeaningWhat to do
imageUserForcedThe image runs as root, so it runs as uid 10001.Nothing. To clear the notice, set a non-root USER in the Dockerfile.
imagePortFromExposeYour service listens on the one port the image exposes.Nothing.
imagePortsAmbiguousThe image exposes several ports and none is 8080, so it runs on 8080, which is probably not where the server listens.Choose the right port in Settings › Runtime settings › Port and restart the service, or EXPOSE only that port in the Dockerfile.

Images that write files at start-up#

Some images write outside /tmp when they start. nginx:alpine, for example, writes to /var/cache/nginx and fails on a read-only filesystem. Use an image that doesn't need to write, or move its writes to /tmp:

Dockerfile
FROM nginxinc/nginx-unprivileged:alpine
COPY dist/ /usr/share/nginx/html/

Only serving static files?

Deploy a static site instead. You don't need to run nginx yourself.