{"componentChunkName":"component---src-templates-post-template-jsx","path":"/errors/posts/2022-09-14--001","result":{"data":{"site":{"siteMetadata":{"title":"Blog by Eunyoung","subtitle":"작업 기록 블로그","copyright":"© All rights reserved.","author":{"name":"EunYoung","twitter":"#"},"disqusShortname":"","url":"https://ssongey.github.io"}},"markdownRemark":{"id":"f0e1d416-22ce-5f8b-9285-5b9b66eb5515","html":"<p>아래 명령어 실행 후 docker 재시작 또는 해당 유저 ssh 재접속</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># usermod로 사용자를 docker 그룹에 추가</span>\n$ <span class=\"token function\">sudo</span> <span class=\"token function\">usermod</span> -aG docker <span class=\"token punctuation\">[</span>계정명<span class=\"token punctuation\">]</span></code></pre></div>\n<br/>\n<p>만약 위 명령어 실행 후 터미널 재접속까지 했으나 permission denied 이 계속 발생한다면..<br>\n/var/run/docker.sock 파일의 권한을 666으로 변경한다.<br>\n그럼 그룹 내 다른 사용자도 접근 가능하게 변경된다.  </p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># chmod 이용하여 모든 유저 읽기/쓰기 가능하도록 파일 권한 변경</span>\n$ <span class=\"token function\">sudo</span> <span class=\"token function\">chmod</span> <span class=\"token number\">666</span> /var/run/docker.sock</code></pre></div>","fields":{"tagSlugs":["/tags/docker/"],"slug":"/errors/posts/2022-09-14--001"},"frontmatter":{"title":"/var/run/docker.sock의 permission denied 발생하는 경우","tags":["docker"],"date":"2022-09-14","description":"dependent child images로 인한 오류"}}},"pageContext":{"slug":"/errors/posts/2022-09-14--001"}},"staticQueryHashes":[]}