The following documentation assumes working knowledge of containerized infrastructure and concepts like container images. If you are unfamiliar with these topics, we recommend reviewing the Docker overview documentation ↗.
Foundry interacts with containers pushed into the platform in two ways:
In both use cases, the first step is to push the image into the Docker registry hosted within Foundry while following the image requirements listed below.
userID.userID defined within the Dockerfile must be numeric and not '0'. Foundry does not allow commands to run within the container as the root user; '0' gets interpreted in some systems as zero, and non-numeric IDs can be set to function as root.linux/amd64 platform.linux, so add --platform linux/amd64 for the Docker build command ↗ to set the platform specifically.digest or any tag other than latest.latest. Foundry will not execute images tagged as latest since there is no mechanism to ensure any given image is actually the latest one./bin/sh.set and tee.