Using the container images
docker pull bellsoft/liberica-runtime-container:jdk-all-21-glibcRegistries
Section titled “Registries”Liberica runtime container images are published on all major container registries. The repository name is the same across registries; only the pull-URL prefix differs.
| Registry | Pull-URL prefix | Authentication |
|---|---|---|
| Docker Hub | bellsoft/<repository>:<tag> | No |
| GitHub Container Registry | ghcr.io/bell-sw/<repository>:<tag> | No |
| Microsoft Container Registry | bellsoft.azurecr.io/<repository>:<tag> | No |
| Google Container Registry | us-docker.pkg.dev/bellsoft/gcr.io/<repository>:<tag> | Yes |
| Amazon ECR | public.ecr.aws/bellsoft/<repository>:<tag> | No |
The following examples pull the same image from each registry:
docker pull bellsoft/liberica-runtime-container:jdk-all-21-glibcdocker pull ghcr.io/bell-sw/liberica-runtime-container:jdk-all-21-glibcdocker pull bellsoft.azurecr.io/liberica-runtime-container:jdk-all-21-glibcdocker pull us-docker.pkg.dev/bellsoft/gcr.io/liberica-runtime-container:jdk-all-21-glibcdocker pull public.ecr.aws/bellsoft/liberica-runtime-container:jdk-all-21-glibcdocker run --rm bellsoft/liberica-runtime-container:jdk-all-21-glibc java -versionBuild your app on top
Section titled “Build your app on top”FROM bellsoft/liberica-runtime-container:jre-21-slim-glibcCOPY target/app.jar /app/app.jarENTRYPOINT ["java", "-jar", "/app/app.jar"]