본문 바로가기
반응형
DevOps/Docker

[Docker] zsh: no matches found: JAR_FILE=build/libs/*.jar

by brightGarden02 2023. 1. 24.

 

https://spring.io/guides/topicals/spring-boot-docker/

 

Spring Boot Docker

this topical is designed to be read and comprehended in under an hour, it provides broad coverage of a topic that is possibly nuanced or requires deeper understanding than you would get from a getting started guide

spring.io

 

Spring Boot Docker 과정 중이다.

 

아래 명령어로 Docker Image 빌드 중 에러가 났다.

docker build --build-arg JAR_FILE=build/libs/*.jar -t myorg/myapp .

 

에러:

zsh: no matches found: JAR_FILE=build/libs/*.jar

 

 

해결방안:

*.jar 앞에 \ 추가

 

docker build --build-arg JAR_FILE=build/libs/\*.jar -t myorg/myapp .

 

 

 

 

참고:

https://github.com/spring-guides/gs-spring-boot-docker/issues/90

 

zsh: no matches found: JAR_FILE=build/libs/*.jar · Issue #90 · spring-guides/gs-spring-boot-docker

Docker build image not working with below command: docker build --build-arg JAR_FILE=build/libs/*.jar -t springio/gs-spring-boot-docker . Resolution: Escape wild card character docker build --build...

github.com

 

 

댓글


반응형
반응형