{"id":653,"date":"2026-08-06T10:54:41","date_gmt":"2026-08-06T01:54:41","guid":{"rendered":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/653"},"modified":"2026-08-06T10:54:41","modified_gmt":"2026-08-06T01:54:41","slug":"sudo%e3%81%aa%e3%81%97%e3%81%a7docker-ps%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/653","title":{"rendered":"sudo\u306a\u3057\u3067docker\u00a0ps\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>Docker \u306e\u30b3\u30de\u30f3\u30c9\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 <strong>root \u6a29\u9650<\/strong> \u304c\u5fc5\u8981\u3067\u3059\u3002<code>sudo docker ps<\/code> \u3068\u5b9f\u884c\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u3092 <code>docker<\/code> \u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3059\u308c\u3070 <strong>sudo \u306a\u3057<\/strong> \u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u624b\u9806<\/h2>\n<h3>1. Docker \u30b0\u30eb\u30fc\u30d7\u306e\u78ba\u8a8d<\/h3>\n<p>\u307e\u305a\u3001<code>docker<\/code> \u30b0\u30eb\u30fc\u30d7\u304c\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code>getent group docker<\/code><\/pre>\n<p>\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5ff5\u306e\u305f\u3081\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>2. \u30e6\u30fc\u30b6\u30fc\u3092 docker \u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0<\/h3>\n<p>\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u30fc\uff08\u4f8b: <code>your_user<\/code>\uff09\u3092 <code>docker<\/code> \u30b0\u30eb\u30fc\u30d7\u3078\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code>sudo usermod -aG docker $USER<\/code><\/pre>\n<p>\u203b <code>$USER<\/code> \u306f\u5b9f\u884c\u4e2d\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u6307\u3057\u307e\u3059\u3002\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>username<\/code> \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>3. \u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u518d\u8aad\u307f\u8fbc\u307f<\/h3>\n<p>\u30b0\u30eb\u30fc\u30d7\u5909\u66f4\u3092\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4e00\u5ea6\u9589\u3058\u3066\u518d\u5ea6\u958b\u304f\u3002<\/li>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3002\n<pre><code>newgrp docker<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>4. \u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>sudo \u304c\u4e0d\u8981\u306b\u306a\u3063\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code>docker ps<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3051\u308c\u3070\u8a2d\u5b9a\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h2>\n<ul>\n<li><strong>Permission denied<\/strong> \u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\uff1a\n<pre><code>sudo systemctl restart docker<\/code><\/pre>\n<p>\u3067 Docker \u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5\u3057\u3001\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>Docker \u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u5834\u5408\uff1a\n<pre><code>sudo systemctl start docker<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 Docker \u306e\u30b3\u30de\u30f3\u30c9\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 root \u6a29\u9650 \u304c\u5fc5\u8981\u3067\u3059\u3002sudo docker ps \u3068\u5b9f\u884c\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u3092 docker \u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3059\u308c\u3070 sudo \u306a\u3057 \u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u624b\u9806 1. D [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-653","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=653"}],"version-history":[{"count":0,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/653\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}