docker-compose ps 실행시 발생할 수 있는 오류
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 670, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1255, in request
File "http/client.py", line 1301, in _send_request
File "http/client.py", line 1250, in endheaders
File "http/client.py", line 1010, in _send_output
File "http/client.py", line 950, in send
File "docker/transport/unixconn.py", line 43, in connect
ConnectionRefusedError: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "requests/adapters.py", line 439, in send
File "urllib3/connectionpool.py", line 726, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 670, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1255, in request
File "http/client.py", line 1301, in _send_request
File "http/client.py", line 1250, in endheaders
File "http/client.py", line 1010, in _send_output
File "http/client.py", line 950, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))
연결 거부라는 메시지가 포함이 되어 있어 혹시나 싶어 docker ps 명령을 실행하니
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
위와 같은 메시지가 출력이 되었네요.
이전에 docker desktop을 종료시켜 두었는데 다시 실행시키고 docker ps, docker-compose ps 명령을 실행하니 이상없이 실행이 됐습니다.
관련 오류를 검색해보면 환경변수같은 다른 이유도 있는 듯 한데 일단 docker가 실행되고 있는지 확인 필수 인거 같습니다.
'개발라이프' 카테고리의 다른 글
jupyter notebook 에서 wget 실행하기 (0) | 2024.10.08 |
---|---|
자바스크립트 구조 분해 할당 - express url 매개변수 (1) | 2024.09.10 |
node.js + typescript + express + typeorm + postgresql 개발환경 셋팅 (0) | 2024.08.02 |
JavaScript의 옵셔널 체이닝 연산자 (Optional Chaining Operator) (0) | 2024.07.25 |
PostgreSQL 소수점 타입 (0) | 2024.07.12 |