본문 바로가기
Solution

[Solution] Docker build 오류 openjdk:11 not found, openjdk:27 not found

by 호호호호히히히히 2025. 11. 4.
728x90
반응형

 

2025-11-04 오전 6:00 이후 docker build 실행 시 아래와 같은 오류가 발생하였습니다.

> [internal] load metadata for docker.io/library/openjdk:11:
------
Dockerfile:2
--------------------
1 | # base
2 | >>> FROM openjdk:11 AS base
3 | WORKDIR /app
4 |
--------------------
ERROR: failed to solve: openjdk:11: failed to resolve source metadata for docker.io/library/openjdk:11: docker.io/library/openjdk:11: not found
Error: Process completed with exit code 1.

 

DockerHub의 공식 OpenJDK 이미지 정책 변경으로 인해 발생한 현상입니다.
openjdk:11 같은 bare 버전 태그(숫자만 있는 태그) 가 DockerHub에서 더 이상 유지되지 않습니다..

 

공식 docker GitHub

https://hub.docker.com/_/openjdk

 

openjdk - Official Image | Docker Hub

Docker Official Images are a curated set of Docker open source and drop-in solution repositories. Why Official Images? These images have clear documentation, promote best practices, and are designed for the most common use cases.

hub.docker.com

 

안내 PR #505

https://github.com/docker-library/openjdk/issues/505

 

Retiring OpenJDK Project Builds for JDK 11 and JDK 8 · Issue #505 · docker-library/openjdk

Hi! This is a heads-up that we are going to retire "OpenJDK Project Builds" for OpenJDK 11u and OpenJDK 8u. We plan to stop producing builds after the July 2022 CPU update (11.0.16 and 8u342 will b...

github.com

 

변경 PR #550 — Remove misleading bare aliases

https://github.com/docker-library/openjdk/pull/550

 

Remove misleading "bare" aliases by tianon · Pull Request #550 · docker-library/openjdk

These make it seem like openjdk:26 is GA, and we don't want that (in fact, we aggressively don't want that). This also removes a lot of old cruft we haven't supported/used in ~3 years, ...

github.com

 

“My ultimate intent is to delete a lot of tagged content from Docker Hub shortly following this — basically anything that isn’t obviously either an old explicit historical version like ‘11.0.6’ or clearly Early Access/pre-release like ‘14-ea’ or ‘21-rc’.”

즉, 명시적인 버전 번호(11.0.6 등)나 Early Access 빌드(21-rc)를 제외한 태그(openjdk:11, openjdk:12 등)는 삭제 대상으로 지정되었습니다..

 

아래 다섯 가지 대체 이미지를 명시적으로 제안하고 있습니다.

  • amazoncorretto
  • eclipse-temurin
  • ibm-semeru-runtimes
  • ibmjava
  • sapmachine

위 이미지는 모두 JVM 커뮤니티 및 기업 벤더에서 직접 유지관리되고 있으며, 보안 패치와 장기 지원(LTS)을 보장합니다.

예를 들어 openjdk:11을 대체하려면 다음과 같이 변경하여 배포합니다.

아침부터 슬픈 이슈..

 
 
# 기존 
FROM openjdk:11
# 변경 
FROM amazoncorretto:11-jdk
반응형

댓글