HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧐
Sonny
/
🐳
깃허브 액션에서 base dockerfile을 참조하지 못하는 현상
🐳

깃허브 액션에서 base dockerfile을 참조하지 못하는 현상

상태
해결
작성일
Jun 14, 2024
태그
WorkSpace
로컬에서는 참조하고 있는데 워크플로우에서는 희한하게 권한 오류가 발생했다.
  • 원인 : buildx를 사용해서 각각의 이미지가 별도의 컨테이너로 빌드 되었기 때문에 베이스 이미지에 접근하지 못하였다.
  • 해결 : buildx를 사용하지 않고 기본 도커 빌더를 사용하여 같은 컨텍스트에서 공유할 수 있도록 하였다!
 
빌더 컨텍스트:
  • Buildx 사용: 별도의 Docker 컨테이너 빌더를 사용하여 각 빌드에 대해 격리된 컨텍스트를 생성합니다. 이는 명명된 컨텍스트를 사용하지 않는 한 여러 빌드 단계에서 빌드 아티팩트(예: 이미지)를 공유하는 기능을 제한할 수 있습니다.
  • Buildx 없음: Docker 데몬과 빌드 컨텍스트를 공유하는 기본 Docker 빌더를 사용하여 단계 전반에 걸쳐 이미지와 빌드 캐시를 원활하게 공유할 수 있습니다.
 
Local Image Not Being Recognized in GitHub Actions Workflow · Issue #1015 · docker/build-push-action
Contributing guidelines I've read the contributing guidelines and wholeheartedly agree I've found a bug, and: The documentation does not mention anything about my problem There are no open ...
Local Image Not Being Recognized in GitHub Actions Workflow · Issue #1015 · docker/build-push-action
https://github.com/docker/build-push-action/issues/1015#issuecomment-1824550633
Local Image Not Being Recognized in GitHub Actions Workflow · Issue #1015 · docker/build-push-action