Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- grafana dashboard
- python popen
- semanage
- snmp test
- selinux port 등록
- 백준
- subporcess path
- gcc regex
- c++ 정규식
- regex_search
- 정규식 활용
- c3 축 가리기
- centos pyhon 설치
- 1697
- CentOS7
- snmp
- linux시간으로 변경
- python os
- g++ 업데이트
- 정규식 문자열 출력
- 정규식 컴파일
- gcc 업데이트
- telegraf
- python subprocess
- c3 축 없애기
- c3 step graph
- c3 second
- InfluxDB
- influxdb 설치
- c3 초
Archives
- Today
- Total
리셋 되지 말자
wsl docker-compose permission error(권한 에러) 본문
Building django
Traceback (most recent call last):
File "bin/docker-compose", line 3, in <module>
File "compose/cli/main.py", line 67, in main
File "compose/cli/main.py", line 126, in perform_command
File "compose/cli/main.py", line 1070, in up
File "compose/cli/main.py", line 1066, in up
File "compose/project.py", line 615, in up
File "compose/service.py", line 362, in ensure_image_exists
File "compose/service.py", line 1125, in build
File "docker/api/build.py", line 160, in build
File "docker/utils/build.py", line 30, in tar
File "docker/utils/build.py", line 49, in exclude_paths
File "docker/utils/build.py", line 214, in rec_walk
File "docker/utils/build.py", line 214, in rec_walk
File "docker/utils/build.py", line 184, in rec_walk
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/Django/44bits-django-tutorial/django-sample-for-docker-compose/docker/data'
[4019] Failed to execute script docker-compose
ubuntu@LAPTOP:~/Django/44bits-django-tutorial/django-sample-for-docker-compose$ sudo docker-compose up -d
[sudo] password for ubuntu:
Building django
Traceback (most recent call last):
File "bin/docker-compose", line 3, in <module>
File "compose/cli/main.py", line 67, in main
File "compose/cli/main.py", line 126, in perform_command
File "compose/cli/main.py", line 1070, in up
File "compose/cli/main.py", line 1066, in up
File "compose/project.py", line 615, in up
File "compose/service.py", line 362, in ensure_image_exists
File "compose/service.py", line 1125, in build
File "docker/api/build.py", line 261, in build
File "docker/api/build.py", line 308, in _set_auth_headers
File "docker/auth.py", line 301, in get_all_credentials
File "docker/auth.py", line 287, in _get_store_instance
File "docker/credentials/store.py", line 25, in __init__
docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not available in PATH
[4024] Failed to execute script docker-compose
위처럼 root 디렉토리가 아니고 home/ubuntu 디렉토리에서 작업해도 자꾸 권한 문제가 나서 sudo로 실행했더니 다른 오류가 남.
docker-credential-desktop.exe가 설치 안됐거나 어쩌구 하는데 아래와 같이 해결할 수 있음
(github.com/docker/compose/issues/7495)
vi ~/.docker/config.json
{
"credsStore": "desktop.exe"
}
위를 아래로 변경 ( '_' 추가)
{
"_credsStore": "desktop.exe"
}
'Docker' 카테고리의 다른 글
[centos7] docker 설치 (0) | 2021.02.22 |
---|---|
[wsl2] Docker Volume 위치 (0) | 2021.02.17 |
[docker-compose] down -v 옵션 DB volume 연결 후, 컨테이너 재구동 시 에러 (0) | 2021.02.17 |
[docker-compose] yml파일 커맨드 공백 에러 (0) | 2021.02.16 |
19. 12. 3 Docker Swarm swarm 실습 cmd 내용 (0) | 2019.12.03 |
Comments