{"id":4147,"date":"2025-03-27T22:07:58","date_gmt":"2025-03-27T19:07:58","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/2025\/03\/27\/docker-rootless\/"},"modified":"2025-03-27T22:34:42","modified_gmt":"2025-03-27T19:34:42","slug":"docker-rootless","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/ja\/2025\/03\/27\/docker-rootless\/","title":{"rendered":"Docker\u306e\u5b89\u5168\uff1a\u306a\u305c\u30eb\u30fc\u30c8\u306e\u767a\u58f2\u304c\u60aa\u3044\u8003\u3048\u306a\u306e\u304b"},"content":{"rendered":"<p>Docker\u306f\u3001\u73fe\u4ee3\u306eDevops\u3068\u958b\u767a\u306b\u4e0d\u53ef\u6b20\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5305\u56f2\u3092\u5206\u96e2\u3057\u3001\u8863\u88c5\u3092\u7c21\u7d20\u5316\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3059\u3070\u3084\u304f\u62e1\u5927\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Docker\u306b\u306f\u30eb\u30fc\u30c8\u304c\u5fc5\u8981\u3067\u3042\u308a\u3001\u3053\u308c\u306f\u6f5c\u5728\u7684\u306b\u5371\u967a\u306a\u30be\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u521d\u671f\u6bb5\u968e\u3067\u306f\u3057\u3070\u3057\u3070\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u306a\u305cDocker\u306f\u30eb\u30fc\u30c8\u304b\u3089\u6a5f\u80fd\u3059\u308b\u306e\u3067\u3059\u304b\uff1f <\/ h2><\/h2>\n<p>Docker\u306f\u3001Linux\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Cgroups\u3001\u540d\u524d\u7a7a\u9593\u3001iptables\u3001\u30de\u30a6\u30f3\u30c8\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30ad\u30f3\u30b0\u3001\u305d\u306e\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u64cd\u4f5c\u306f\u3001\u30b9\u30fc\u30d1\u30fc\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304c\u7406\u7531\u3067\u3059\uff1a<br \/>\n* dockerd\u30c7\u30fc\u30e2\u30f3\u306f\u30eb\u30fc\u30c8\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3001<br \/>\n* Docker\u30b3\u30de\u30f3\u30c9\u306f\u3053\u306e\u60aa\u9b54\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u4f5c\u696d\u304c\u7c21\u7d20\u5316\u3055\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3067\u304d\u307e\u3059\u304c\u3001\u540c\u6642\u306b\u6f5c\u5728\u7684\u306a\u8106\u5f31\u6027\u304c\u958b\u304b\u308c\u307e\u3059\u3002<\/p>\n<p><H2>\u306a\u305c\u5371\u967a\u306a\u306e\u304b\uff1a\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30a4\u30af\u30a2\u30a6\u30c8\u3001CVE\u3001RCE <\/ h2><\/h2>\n<h3>\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30a4\u30af\u30a2\u30a6\u30c8<\/ h3><\/h3>\n<p>\u65ad\u71b1\u6750\u304c\u5f31\u3044\u3068\u3001\u653b\u6483\u8005\u306fchroot\u307e\u305f\u306fpivot_root\u3092\u4f7f\u7528\u3057\u3066\u30db\u30b9\u30c8\u306b\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u653b\u6483\u306e\u4f8b\uff1a<\/p>\n<p>* CVE-2019-5736-RUNC\u306b\u5bfe\u3059\u308b\u59a8\u5bb3\u6027\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u66f8\u304d\u63db\u3048\u3066\u30db\u30b9\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n* CVE-2021-3156-sudo\u306b\u5bfe\u3059\u308b\u59a8\u5bb3\u6027\u306b\u3088\u308a\u3001\u5bb9\u5668\u5185\u306b\u30eb\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u3066\u51fa\u3066\u884c\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3> rce\uff08\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\uff09<\/ h3><\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u8106\u5f31\u3067\u3001root\u304b\u3089\u59cb\u307e\u308b\u5834\u5408\u3001RCE =\u30db\u30b9\u30c8\u306e\u5b8c\u5168\u306a\u5236\u5fa1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/demensdeum.com\/blog\/wp-content\/uploads\/2025\/03\/mediadocker-rootless.png\"><\/p>\n<h2> rootless docker\uff1a\u554f\u984c\u306e\u89e3\u6c7a\u7b56<\/ h2><\/h2>\n<p>\u3053\u308c\u3089\u306e\u30ea\u30b9\u30af\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u305f\u3081\u306b\u3001docker\u306b\u306f\u30eb\u30fc\u30c8\u30ec\u30b9\u30e2\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30e2\u30fc\u30c9\u3067\u306f\u3001demon\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u4e21\u65b9\u304c\u3001\u30eb\u30fc\u30c8\u3068\u7279\u6a29\u306e\u306a\u3044\u901a\u5e38\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u4ee3\u308f\u3063\u3066\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u653b\u6483\u8005\u304c\u30b3\u30f3\u30c6\u30ca\u306e\u5236\u5fa1\u3092\u53d7\u3051\u53d6\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u30db\u30b9\u30c8\u30b7\u30b9\u30c6\u30e0\u306b\u5bb3\u3092\u53ca\u307c\u3059\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br \/>\n\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u30021024\u672a\u6e80\u306e\u30dd\u30fc\u30c8\uff08\u305f\u3068\u3048\u3070\u300180\u304a\u3088\u3073443\uff09\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002 -Privileged\u30e2\u30fc\u30c9\u3068\u4e00\u90e8\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30e2\u30fc\u30c9\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u307b\u3068\u3093\u3069\u306e\u958b\u767a\u30b7\u30ca\u30ea\u30aa\u3068CI\/CD Rootless Docker\u3067\u306f\u3001\u30bf\u30b9\u30af\u306b\u5bfe\u51e6\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ec\u30d9\u30eb\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<\/p>\n<h2>\u6b74\u53f2\u7684\u306b\u3001root -antipattern <\/ h2>\u304b\u3089\u8d77\u52d5<\/h2>\n<p>\u6700\u521d\u304b\u3089\u3001\u6700\u5c0f\u306e\u7279\u6a29\u306e\u539f\u5247\u304cUNIX\/Linux\u306e\u4e16\u754c\u306b\u9069\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002\u30d7\u30ed\u30bb\u30b9\u304c\u5c11\u306a\u3044\u307b\u3069\u3001\u5bb3\u304c\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u3002 Docker\u306f\u5f53\u521d\u3001\u30eb\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3092\u8981\u6c42\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u3067\u306f\u6f5c\u5728\u7684\u306a\u8105\u5a01\u3068\u898b\u306a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30bd\u30fc\u30b9<\/ h2><\/h2>\n<p><a href=\"https:\/\/docs.docker.com\/engine\/security\/rootless\/\" rel=\"noopener\" target=\"_blank\">https:\/\/docs.docker.com\/engine\/security\/rootless\/<\/a><br \/>\n<a href=\"https:\/\/rootlesscontaine.rs\/\" rel=\"noopener\" target=\"_blank\">https:\/\/rootlesscontaine.rs\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u306f\u3001\u73fe\u4ee3\u306eDevops\u3068\u958b\u767a\u306b\u4e0d\u53ef\u6b20\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5305\u56f2\u3092\u5206\u96e2\u3057\u3001\u8863\u88c5\u3092\u7c21\u7d20\u5316\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3059\u3070\u3084\u304f\u62e1\u5927\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Docker\u306b\u306f\u30eb\u30fc\u30c8\u304c\u5fc5\u8981\u3067\u3042\u308a\u3001\u3053\u308c\u306f\u6f5c\u5728\u7684\u306b\u5371\u967a\u306a\u30be\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u521d\u671f\u6bb5\u968e\u3067\u306f\u3057\u3070\u3057\u3070\u7121\u8996\u3055\u308c\u307e\u3059\u3002 \u306a\u305cDocker\u306f\u30eb\u30fc\u30c8\u304b\u3089\u6a5f\u80fd\u3059\u308b\u306e\u3067\u3059\u304b\uff1f Docker\u306f\u3001Linux\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Cgroups\u3001\u540d\u524d\u7a7a\u9593\u3001iptables\u3001\u30de\u30a6\u30f3\u30c8\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30ad\u30f3\u30b0\u3001\u305d\u306e\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u64cd\u4f5c\u306f\u3001\u30b9\u30fc\u30d1\u30fc\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002 \u305d\u308c\u304c\u7406\u7531\u3067\u3059\uff1a * dockerd\u30c7\u30fc\u30e2\u30f3\u306f\u30eb\u30fc\u30c8\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3001 * Docker\u30b3\u30de\u30f3\u30c9\u306f\u3053\u306e\u60aa\u9b54\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u4f5c\u696d\u304c\u7c21\u7d20\u5316\u3055\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3067\u304d\u307e\u3059\u304c\u3001\u540c\u6642\u306b\u6f5c\u5728\u7684\u306a\u8106\u5f31\u6027\u304c\u958b\u304b\u308c\u307e\u3059\u3002 \u306a\u305c\u5371\u967a\u306a\u306e\u304b\uff1a\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30a4\u30af\u30a2\u30a6\u30c8\u3001CVE\u3001RCE \u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30a4\u30af\u30a2\u30a6\u30c8 \u65ad\u71b1\u6750\u304c\u5f31\u3044\u3068\u3001\u653b\u6483\u8005\u306fchroot\u307e\u305f\u306fpivot_root\u3092\u4f7f\u7528\u3057\u3066\u30db\u30b9\u30c8\u306b\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u5b9f\u969b\u306e\u653b\u6483\u306e\u4f8b\uff1a * CVE-2019-5736-RUNC\u306b\u5bfe\u3059\u308b\u59a8\u5bb3\u6027\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u66f8\u304d\u63db\u3048\u3066\u30db\u30b9\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002 * CVE-2021-3156-sudo\u306b\u5bfe\u3059\u308b\u59a8\u5bb3\u6027\u306b\u3088\u308a\u3001\u5bb9\u5668\u5185\u306b\u30eb\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u3066\u51fa\u3066\u884c\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002 rce\uff08\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\uff09 \u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u8106\u5f31\u3067\u3001root\u304b\u3089\u59cb\u307e\u308b\u5834\u5408\u3001RCE =\u30db\u30b9\u30c8\u306e\u5b8c\u5168\u306a\u5236\u5fa1\u3002 rootless docker\uff1a\u554f\u984c\u306e\u89e3\u6c7a\u7b56 \u3053\u308c\u3089\u306e\u30ea\u30b9\u30af\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u305f\u3081\u306b\u3001docker\u306b\u306f\u30eb\u30fc\u30c8\u30ec\u30b9\u30e2\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30e2\u30fc\u30c9\u3067\u306f\u3001demon\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u4e21\u65b9\u304c\u3001\u30eb\u30fc\u30c8\u3068\u7279\u6a29\u306e\u306a\u3044\u901a\u5e38\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u4ee3\u308f\u3063\u3066\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u653b\u6483\u8005\u304c\u30b3\u30f3\u30c6\u30ca\u306e\u5236\u5fa1\u3092\u53d7\u3051\u53d6\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u30db\u30b9\u30c8\u30b7\u30b9\u30c6\u30e0\u306b\u5bb3\u3092\u53ca\u307c\u3059\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002 \u5236\u9650\u304c\u3042\u308a\u307e\u3059\u30021024\u672a\u6e80\u306e\u30dd\u30fc\u30c8\uff08\u305f\u3068\u3048\u3070\u300180\u304a\u3088\u3073443\uff09\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002 -Privileged\u30e2\u30fc\u30c9\u3068\u4e00\u90e8\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30e2\u30fc\u30c9\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u307b\u3068\u3093\u3069\u306e\u958b\u767a\u30b7\u30ca\u30ea\u30aa\u3068CI\/CD Rootless Docker\u3067\u306f\u3001\u30bf\u30b9\u30af\u306b\u5bfe\u51e6\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ec\u30d9\u30eb\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002 \u6b74\u53f2\u7684\u306b\u3001root -antipattern \u304b\u3089\u8d77\u52d5 \u6700\u521d\u304b\u3089\u3001\u6700\u5c0f\u306e\u7279\u6a29\u306e\u539f\u5247\u304cUNIX\/Linux\u306e\u4e16\u754c\u306b\u9069\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002\u30d7\u30ed\u30bb\u30b9\u304c\u5c11\u306a\u3044\u307b\u3069\u3001\u5bb3\u304c\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u3002 Docker\u306f\u5f53\u521d\u3001\u30eb\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3092\u8981\u6c42\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u3067\u306f\u6f5c\u5728\u7684\u306a\u8105\u5a01\u3068\u898b\u306a\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u30bd\u30fc\u30b9 https:\/\/docs.docker.com\/engine\/security\/rootless\/ https:\/\/rootlesscontaine.rs\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-4147","post","type-post","status-publish","format-standard","hentry","category-blog","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"ja","enabled_languages":["en","ru","zh","de","fr","ja","pt"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/4147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/comments?post=4147"}],"version-history":[{"count":6,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/4147\/revisions"}],"predecessor-version":[{"id":4153,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/4147\/revisions\/4153"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/media?parent=4147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/categories?post=4147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/tags?post=4147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}