#docker #kubernetes #container #orchestrator #microservice #infrastructure-as-code #devops #ci #cd

제목[Q&A]Cannot connect to the Docker daemon. Is the docker daemon running on this host?2019-12-12 22:58
작성자

(Cannot connect to the Docker daemon. Is the docker daemon running on this host? 이러한 에러 메시지가 뜬다면, 그것은 sudo 권한이 없어서 생긴 일이다. )

# docker 명령어 사용시 sudo를 매번 붙이지 않게 하려면 : OS에서 아래의 유저 권한을 한 번 줘버리면 해결됨. 아래와 같이 리눅스의 groupadd명령어로 도커를 추가해버리면 된다. 


sudo groupadd docker 

sudo gpasswd -a ${USER} docker # USER는 docker를 실행할 username을 뜻함

sudo service docker restart 

댓글