Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Servers, nginx and Docker

The java:8-jre-alpine base image is gone, and its replacement fails on Apple Silicon

Your error

manifest for java:8-jre-alpine not found: manifest unknown: manifest unknown1 more line it can show

Fix it fast

Most common cause, 1 of 2

The official java repository no longer exists

Point FROM (or the Compose image key) at a maintained image with the same Java major and the same JRE or JDK flavour.

Fix
# before
FROM java:8-jre-alpine
# Temurin, amd64 only
FROM eclipse-temurin:8-jre-alpine
# or Corretto, amd64 and arm64
FROM amazoncorretto:8-alpine-jre
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

manifest for java:8-jre-alpine not found means the tag no longer exists: the official java repository was retired in February 2017. Change FROM to eclipse-temurin or amazoncorretto. On an Apple Silicon Mac or arm64 server, check platforms too: Temurin Alpine tags for Java 8, 11 and 17 are amd64-only, while Temurin Ubuntu tags and Corretto tags include arm64.

  • Applies to Docker Engine 28-29, Docker Desktop 4.x on Apple Silicon, eclipse-temurin 8 to 27 images, amazoncorretto 8 to 25 images
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Ask the registry about the exact tag, then compare its platform list with your CPU. An error means the tag does not exist; a list with only linux/amd64 means it exists for Intel and AMD machines only.

Run this first
docker buildx imagetools inspect java:8-jre-alpine
docker buildx imagetools inspect eclipse-temurin:17-jre-alpine | grep Platform
uname -m

Then find the line you see in this list and open its fix:

  1. 1The official java repository no longer existsEvery java:<tag> fails with manifest unknown, including tags that pulled fine in old projects
  2. 2The replacement Alpine tag has no arm64 buildThe pull or build fails only on an Apple Silicon Mac, a Graviton instance or another arm64 host, and imagetools prints only Platform: linux/amd64

What does the error look like?

  • manifest for java:8-jre-alpine not found: manifest unknown: manifest unknown
  • The same Dockerfile builds on an Intel laptop but stops at the FROM line on an M1 or M2 Mac

Cause 1 of 2

The official java repository no longer exists

You seeEvery java:<tag> fails with manifest unknown, including tags that pulled fine in old projects

Check

Docker reports manifest unknown for java:8-jre-alpine because the official java image was retired: the official-images repository deleted its deprecated java manifest on 27 February 2017, and no tag of it can be pulled since. The openjdk image that followed it is deprecated too and receives only early-access builds.

Check
grep -rn -E 'FROM java:|image: java:' --include=Dockerfile --include='*.yml' --include='*.yaml' .

Fix

Point FROM (or the Compose image key) at a maintained image with the same Java major and the same JRE or JDK flavour.

Fix
# before
FROM java:8-jre-alpine
# Temurin, amd64 only
FROM eclipse-temurin:8-jre-alpine
# or Corretto, amd64 and arm64
FROM amazoncorretto:8-alpine-jre

Verify

The new image pulls and reports Java 8.

Verify
docker run --rm amazoncorretto:8-alpine-jre java -version

Confirmed by github.com

Did this fix it?

Cause 2 of 2

The replacement Alpine tag has no arm64 build

You seeThe pull or build fails only on an Apple Silicon Mac, a Graviton instance or another arm64 host, and imagetools prints only Platform: linux/amd64

Check

On arm64 machines the trouble moves to the new tag. The eclipse-temurin library file lists every Alpine tag for Java 8, 11 and 17 with amd64 as the only architecture. Its Alpine tags for 21, 25 and 27 add arm64v8, and its Ubuntu tags (jammy, noble, resolute) carry arm64v8 for every Java major.

Check
docker buildx imagetools inspect eclipse-temurin:17-jre-alpine | grep Platform
docker buildx imagetools inspect eclipse-temurin:17-jre-noble | grep Platform

Fix

Keep the Java major and change the variant: Temurin's Ubuntu tag, Corretto's Alpine tag (both list arm64v8), or Alpine with Java 21 or newer.

Fix
FROM eclipse-temurin:17-jre-noble
# or: FROM amazoncorretto:17-alpine       (a full JDK)
# or: FROM eclipse-temurin:21-jre-alpine

Verify

The tag now lists linux/arm64, and the build runs natively without emulation.

Verify
docker buildx imagetools inspect eclipse-temurin:17-jre-noble | grep arm64
docker build -t my-app .

Confirmed by github.com

Did this fix it?

How do I stop it coming back?

  • Pin base images by Java major and OS flavour (21-jre-noble, 17-alpine), never by latest: amazoncorretto:latest, for one, is Corretto 8, not the newest JDK.
  • When the team mixes Intel and Apple Silicon machines, run imagetools inspect on a new base tag and keep it only if both linux/amd64 and linux/arm64 appear.
  • Check a base image for a deprecation notice before adopting it: java was removed as deprecated, and openjdk now carries such a notice and gets only early-access builds.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine on the same stack: TaxiDex, Dispatch Pro.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.