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 showFix it fast
Most common cause, 1 of 2The 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.
# before
FROM java:8-jre-alpine
# Temurin, amd64 only
FROM eclipse-temurin:8-jre-alpine
# or Corretto, amd64 and arm64
FROM amazoncorretto:8-alpine-jreShort 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.
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.
docker buildx imagetools inspect java:8-jre-alpine
docker buildx imagetools inspect eclipse-temurin:17-jre-alpine | grep Platform
uname -mThen find the line you see in this list and open its fix:
- 1The official java repository no longer exists
Every java:<tag> fails with manifest unknown, including tags that pulled fine in old projects - 2The replacement Alpine tag has no arm64 build
The 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 unknownThe 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.
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.
# before
FROM java:8-jre-alpine
# Temurin, amd64 only
FROM eclipse-temurin:8-jre-alpine
# or Corretto, amd64 and arm64
FROM amazoncorretto:8-alpine-jreVerify
The new image pulls and reports Java 8.
docker run --rm amazoncorretto:8-alpine-jre java -versionConfirmed by github.com
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.
docker buildx imagetools inspect eclipse-temurin:17-jre-alpine | grep Platform
docker buildx imagetools inspect eclipse-temurin:17-jre-noble | grep PlatformFix
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.
FROM eclipse-temurin:17-jre-noble
# or: FROM amazoncorretto:17-alpine (a full JDK)
# or: FROM eclipse-temurin:21-jre-alpineVerify
The tag now lists linux/arm64, and the build runs natively without emulation.
docker buildx imagetools inspect eclipse-temurin:17-jre-noble | grep arm64
docker build -t my-app .Confirmed by github.com
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.