일단 환경은 <div>AWS ubuntu 14.04(LTS) 구요</div> <div><a target="_blank" href="https://docs.docker.com/engine/installation/ubuntulinux/">https://docs.docker.com/engine/installation/ubuntulinux/</a></div> <div>여기에 나와있는대로 엔진 설치 끝내구 sudo 권한없이 일반계정에서도 docker client를 사용할 수 있게 세팅하는 중인데요</div> <div>이게 정말 애먹네요ㅠㅠ</div> <div>일단 일반계정을 docker그룹에 추가 시켰고 </div> <div>docker images 명령어를 치니 Cannot connect to the Docker daemon. Is the docker daemon running on this host?</div> <div><span style="font-size:9pt;line-height:1.5;">라는 에러 메시지가 뜨네요.</span></div> <div>위 doc문서에선</div> <div><br></div> <div><p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">If this fails with a message similar to this:</p><pre style="margin-top:0px;padding:0px;color:#050e1a;letter-spacing:1px;"><code class="hljs livecodeserver" style="border:1px solid rgb(255,203,148);color:#333333;font-family:Consolas, 'Liberation Mono', Courier, monospace;padding:.5em;display:block;background:#f8f8f8;">Cannot connect <span class="hljs-built_in" style="color:#0086b3;">to</span> <span class="hljs-operator">the</span> Docker daemon. Is <span class="hljs-string" style="color:#dd1144;">'docker daemon'</span> running <span class="hljs-command"><span class="hljs-keyword" style="font-weight:bold;">on</span> <span class="hljs-title" style="color:#990000;font-weight:bold;">this</span> <span class="hljs-title" style="color:#990000;font-weight:bold;">host</span>?</span></code></pre> <p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">Check that the <code style="border:1px solid rgb(255,203,148);color:#333333;font-family:Consolas, 'Liberation Mono', Courier, monospace;background-color:#f8f8f8;">DOCKER_HOST</code> environment variable is not set for your shell. If it is, unset it.</p> <p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">라고 적혀 있었는데 도통 뭐라하는지 이해가잘... 저의 쉘에 DOCKER_HOST환경변수가 설정되어있지 않다면 그걸 취소하라(?) 인가요?</p> <p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">이해가 잘 안되서 막 되는대로 export DOCKER_HOST=unix:///var/run/docker.sock 이렇게 소켓파일을 환경변수로 설정해보기도 했는데 안되고...</p> <p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">도저히 저 문장가지곤 답이 없어서 구글링 해서 /etc/default/docker 이 설정 파일을 수정해서 호스트를unix 소켓에서 localhost:4243으로 포워딩시키고 DOCKER_HOST를
tcp://localhost:4243으로 해보니 되네요</p> <p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">근데 뭔가 석연찮아서... </p> <p style="margin:0px 0px;padding:0px;font-family:'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:16px;line-height:1.6;letter-spacing:1px;color:#050e1a;">포워딩 안하고 바로 유닉스 도메인 소켓에는 연결 할 수 없나요??</p></div>