Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

"docker build ..." 시 "failed to solve with frontend dockerfile.v0: failed to read dockerfile ..." 오류

이상하군요, 예전에 docker build 명령어를 현재 디렉터리의 dockerfile을 지정해서 잘 사용했던 것 같은데,

C:\temp> docker build -t helloworld -f helloworld.dockerfile .

이번에는 다음과 같이 오류가 발생했습니다.

C:\temp> docker build -f dockerfile .
[+] Building 1.0s (2/2) FINISHED
 => [internal] load build definition from dockerfile                                                                         0.7s
 => => transferring dockerfile: 2B                                                                                           0.1s
 => [internal] load .dockerignore                                                                                            0.9s
 => => transferring context: 2B                                                                                              0.0s
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount843263685/dockerfile: no such file or directory

이 오류를 수정하려면 "-f" 인자로 전달하는 파일을 절대 경로로 해주어야 합니다.

C:\temp> docker build -f c:\temp\dockerfile .

참고로, 전달한 파일 경로가 잘못되었을 때도 저런 오류 메시지가 나옵니다. (불친절한 docker desktop... ^^;)




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 12/8/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 76  77  78  79  80  81  [82]  83  84  85  86  87  88  89  90  ...
NoWriterDateCnt.TitleFile(s)
11978정성태7/6/201922069Windows: 161. 계정 정보가 동일하지 않은 PC 간의 인증을 수행하는 방법 [1]
11977정성태7/6/201925958오류 유형: 554. git push - error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
11976정성태7/4/201921122오류 유형: 553. (잘못 인증 한 후) 원격 git repo 재인증 시 "remote: HTTP Basic: Access denied" 오류 발생
11975정성태7/4/201928832개발 환경 구성: 448. Visual Studio Code에서 콘솔 응용 프로그램 개발 시 "입력"받는 방법
11974정성태7/4/201925618Linux: 22. "Visual Studio Code + Remote Development"로 윈도우 환경에서 리눅스(CentOS 7) C/C++ 개발
11973정성태7/4/201923635Linux: 21. 리눅스에서 공유 라이브러리가 로드되지 않는다면?
11972정성태7/3/201928830.NET Framework: 847. JAVA와 .NET 간의 AES 암호화 연동 [1]파일 다운로드1
11971정성태7/3/201923038개발 환경 구성: 447. Visual Studio Code에서 OpenCvSharp 개발 환경 구성
11970정성태7/2/201923139오류 유형: 552. 웹 브라우저에서 파일 다운로드 후 "Running security scan"이 끝나지 않는 문제
11969정성태7/2/201923660Math: 63. C# - 3층 구조의 신경망파일 다운로드1
11968정성태7/1/201930375오류 유형: 551. Visual Studio Code에서 Remote-SSH 연결 시 "Opening Remote..." 단계에서 진행되지 않는 문제 [1]
11967정성태7/1/201924953개발 환경 구성: 446. Synology NAS를 Windows 10에서 iSCSI로 연결하는 방법
11966정성태6/30/201923438Math: 62. 활성화 함수에 따른 뉴런의 출력을 그리드 맵으로 시각화파일 다운로드1
11965정성태6/30/201923887.NET Framework: 846. C# - 2차원 배열을 1차원 배열로 나열하는 확장 메서드파일 다운로드1
11964정성태6/30/201924275Linux: 20. C# - Linux에서의 Named Pipe를 이용한 통신
11963정성태6/29/201923974Linux: 19. C# - .NET Core Unix Domain Socket 사용 예제
11962정성태6/27/201921545Math: 61. C# - 로지스틱 회귀를 이용한 선형분리 불가능 문제의 분류파일 다운로드1
11961정성태6/27/201922296Graphics: 37. C# - PLplot - 출력 모음(Family File Output)
11960정성태6/27/201923824Graphics: 36. C# - PLplot의 16색 이상을 표현하는 방법과 subpage를 이용한 그리드 맵 표현
11959정성태6/27/201924884Graphics: 35. matplotlib와 PLplot의 한글 처리
11958정성태6/25/201929453Linux: 18. C# - .NET Core Console로 리눅스 daemon 프로그램 만드는 방법 [6]
11957정성태6/24/201925718Windows: 160. WMI 쿼리를 명령행에서 간단하게 수행하는 wmic.exe [2]
11956정성태6/24/201926101Linux: 17. CentOS 7에서 .NET Core Web App 실행 환경 구성 [1]
11955정성태6/20/201923913Math: 60. C# - 로지스틱 회귀를 이용한 분류파일 다운로드1
11954정성태6/20/201921562오류 유형: 550. scp - sudo: no tty present and no askpass program specified
11953정성태6/20/201919168오류 유형: 549. The library 'libhostpolicy.so' required to execute the application was not found in '...'
... 76  77  78  79  80  81  [82]  83  84  85  86  87  88  89  90  ...