IntelliJ에서 도커 컨테이너를 만들어 돌리는 연습을 하던 중에 다음과 같은 에러가 났다.
docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a hosdocker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid
docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
결론적으로 해당 에러는 경로지정 명령어인 $(pwd) 부분이 shell마다 다르기 때문에 나는 에러였다.
Power Shell에서는 '${pwd}'를 사용하며,
Command Prompt(cmd) 에서는 '%cd%'를 사용하고,
bash, sh, zsh, and Docker Toolbox Quickstart Terminal 에서는 '$(pwd)'를 사용한다.
( 참조: stackoverflow.com/questions/58557345/docker-includes-invalid-characters-pwd-for-a-local-volume-name )
시도해본 결과, IntelliJ의 Terminal은 cmd를 사용하고 있는거 같다.
'에러 잡기 실력 상승!' 카테고리의 다른 글
django로 테스트 게시판에서 저장시 500 error 발생 (0) | 2021.01.23 |
---|---|
ubuntu에서 dependency problems error (0) | 2021.01.16 |
Kafka 실행 시 '지정된 경로를 찾을 수 없습니다.' 메세지 오류 (0) | 2020.08.29 |
myBatis configuration에 setting 시 오류 (0) | 2020.08.18 |
initializationError FAILED : java.lang.IllegalStateException at Assert.java:73 (0) | 2020.07.29 |