-
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.Backend/Docker 2023. 8. 2. 10:07
필자는 위와 같은 오류를 만난 적이 있다. 물론 그 전에 docker-compose.yml 파일에서 command를 따로 기입하지 않았거나, 타입 에러 (아마 설명을 적어 놓는다는게, 주석 처리랍시고 문자열을 사용해서 그런듯 하다.)
무튼 위와 같은 오류를 만났을 때는 어떻게 하면 좋을지?
-> 검색 해본 결과, docker 서비스를 시작해주면 된다!
아래 2개의 명령어를 입력할 것!
$ sudo service docker start
$ sudo docker-compose up
그러면 아래와 같이 실행되는 것을 볼 수 있다!
'Backend > Docker' 카테고리의 다른 글
docker란? docker 이미지와 컨테이너 개념 정리하기 (0) 2023.10.19 ubuntu에서 ModuleNotFoundError: No module named 'dotenv' (0) 2023.08.02 dockerfile 작성하기 (0) 2023.08.01