docker-compose 시 "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" 오류 발생
이렇게 오류가 발생한다면?
$ docker-compose -f docker/docker-compose.local.yml pull
Pulling django ... done Pulling nginx-front ...
ERROR: for nginx-front Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "bin/docker-compose", line 6, in <module>
File "compose/cli/main.py", line 72, in main
File "compose/cli/main.py", line 128, in perform_command
File "compose/cli/main.py", line 748, in pull
File "compose/project.py", line 630, in pull
File "compose/project.py", line 678, in parallel_pull
File "compose/parallel.py", line 112, in parallel_execute
File "compose/parallel.py", line 210, in producer
File "compose/project.py", line 660, in pull_service
File "compose/service.py", line 1215, in _do_pull
File "site-packages/docker/api/image.py", line 396, in pull
File "site-packages/docker/auth.py", line 48, in get_config_header
File "site-packages/docker/auth.py", line 324, in resolve_authconfig
File "site-packages/docker/auth.py", line 235, in resolve_authconfig
File "site-packages/docker/auth.py", line 264, in _resolve_authconfig_credstore
File "site-packages/docker/credentials/store.py", line 36, in get
File "json/__init__.py", line 348, in loads
File "json/decoder.py", line 337, in decode
File "json/decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[5267] Failed to execute script docker-compose
고민하지 마시고 ^^ sudo를 붙여주세요.
$ sudo docker-compose -f docker/docker-compose.local.yml pull
오랜만에 WSL에서 git pull을 했더니, 할 때마다 사용자 계정을 물어봅니다. 이럴 때는, credential 정보를 영구 저장하라는 옵션을 추가하면 됩니다.
$ git config --global credential.helper store
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]