{"id":556,"date":"2025-01-25T21:13:41","date_gmt":"2025-01-25T12:13:41","guid":{"rendered":"https:\/\/poca256.com\/?p=556"},"modified":"2025-01-25T21:13:41","modified_gmt":"2025-01-25T12:13:41","slug":"docker-gitlab%e3%81%8c%e8%b5%b7%e5%8b%95%e3%81%97%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%a6%e3%81%84%e3%81%9f","status":"publish","type":"post","link":"https:\/\/poca256.com\/?p=556","title":{"rendered":"[Docker] Gitlab\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u2026"},"content":{"rendered":"<p>QNAP\u306eNAS\u306b\u306f\u3001Container Station\u3068\u3044\u3046\u30a2\u30d7\u30ea\u304c\u3042\u308aDocker\u30b3\u30f3\u30c6\u30ca\u3092\u624b\u8efd\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u524d\u306bGitlab\u3092\u7acb\u3061\u4e0a\u3052\u3066\u516c\u958b\u3057\u3066\u3044\u308b\u30bd\u30d5\u30c8\u3092\u4fdd\u6301\u3057\u3066\u3082\u3089\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4e45\u3005\u306b\u4f7f\u304a\u3046\u3068\u3057\u305f\u3089\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u306f<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>sudo: error in \/etc\/sudo.conf, line 0 while loading plugin `sudoers_policy'\r\nsudo: \/usr\/lib\/sudo\/sudoers.so must be only be writable by owner\r\nsudo: fatal error, unable to load plugins<\/code><\/pre>\n<\/div>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3002gitlab\u3068postgresql\u304c\u7e70\u308a\u8fd4\u3057\u3053\u306e\u30a8\u30e9\u30fc\u3092\u306f\u3044\u3066\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>https:\/\/forum.qnap.com\/viewtopic.php?t=157867&#038;start=45&#038;sid=9b540cb0c24fc97d97b95c77f95c3ace<\/p>\n<p>\u306b\u305d\u308c\u3063\u307d\u3044\u5831\u544a\u306f\u3042\u308b\u3082\u306e\u306e\u7279\u306b\u89e3\u6c7a\u65b9\u6cd5\u306f\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002Container Station\u30a2\u30d7\u30ea\u307e\u305f\u306fQTS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u8d77\u304d\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Container Station\u30a2\u30d7\u30ea\u3067\u306f\u7c21\u5358\u306b\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u7d30\u304b\u3044\u5236\u5fa1\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u30d9\u30fc\u30b9\u3068\u306a\u3063\u3066\u3044\u308b\u30a4\u30e1\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u3082\u8003\u3048\u307e\u3057\u305f\u304c\u3001\u30b3\u30f3\u30c6\u30ca\u304c\u8d77\u52d5\u3067\u304d\u306a\u3044\u306e\u3067\u4e2d\u8eab\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u305a\u9014\u65b9\u306b\u66ae\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>sudo\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u306b\u554f\u984c\u304c\u3042\u308a\u305d\u308c\u3092\u306a\u304a\u3059\u8a18\u4e8b\u306f\u6563\u898b\u3055\u308c\u307e\u3059\u304c\u3001\u8d77\u52d5\u3067\u304d\u306a\u3044\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3059\u308b\u3053\u3068\u3067\u4f55\u3068\u304b\u306a\u3089\u306a\u3044\u304b\u3068\u3055\u307e\u3088\u3063\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>https:\/\/github.com\/pi-hole\/docker-pi-hole\/issues\/670<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>#docker stop [\u30b3\u30f3\u30c6\u30caID]; docker start [\u30b3\u30f3\u30c6\u30caID]; docker exec -it [\u30b3\u30f3\u30c6\u30caID] chown 0:0 \/usr\/lib\/sudo\/sudoers.so; docker exec -it [\u30b3\u30f3\u30c6\u30caID] chmod 0644 \/usr\/lib\/sudo\/sudoers.so<\/code><\/pre>\n<\/div>\n<p>\u79c1\u306f<\/p>\n<ul>\n<li>QNAP\u306e\u7ba1\u7406\u7528\u30b3\u30f3\u30bd\u30fc\u30eb\u306bSSH\u7d4c\u7531\u3067\u30ed\u30b0\u30a4\u30f3<\/li>\n<li>GUI\u3067\u8a72\u5f53\u30b3\u30f3\u30c6\u30ca\u3092\u518d\u8d77\u52d5<\/li>\n<li>\u9593\u9aea\u5165\u308c\u305a\u306bdocker exec\u4ee5\u964d\u306e\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u308c\u3066\u3044\u304f\u30fb\u30fb\u30fb<\/li>\n<\/ul>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>#docker exec -it [\u30b3\u30f3\u30c6\u30caID] chown 0:0 \/usr\/lib\/sudo\/sudoers.so\r\n#docker exec -it [\u30b3\u30f3\u30c6\u30caID] chmod 0644 \/usr\/lib\/sudo\/sudoers.so<\/code><\/pre>\n<\/div>\n<p>\u3068\u3044\u3046\u65b9\u6cd5\u3067\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u4fee\u6b63\u3067postgresql\u306f\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001gitlab\u306b\u306f\u3055\u3089\u306b\u5225\u306b\u30a8\u30e9\u30fc\u304c\u2026<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>sudo: \/etc\/sudoers.d is world writable<\/code><\/pre>\n<\/div>\n<p>\u3053\u3061\u3089\u3082\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u554f\u984c\u3089\u3057\u304f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>https:\/\/askubuntu.com\/questions\/304212\/how-to-solve-sudo-etc-sudoers-d-is-world-writable<\/p>\n<p>\u79c1\u304c\u6253\u3061\u8fbc\u3093\u3060\u30b3\u30de\u30f3\u30c9<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>#docker exec -it [\u30b3\u30f3\u30c6\u30caID] chmod 0755 \/etc\/sudoers\r\n#docker exec -it [\u30b3\u30f3\u30c6\u30caID] chmod 0755 \/etc\/sudoers.d<\/code><\/pre>\n<\/div>\n<p>\u4ee5\u524d\u306fQTS\u3084\u30a2\u30d7\u30ea\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u6d88\u6975\u7684\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6628\u4eca\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u554f\u984c\u3082\u3042\u308a\u6700\u65b0\u7248\u306e\u53d6\u308a\u8fbc\u307f\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u305f\u3073\u306b\u4f55\u304b\u304c\u52d5\u304b\u306a\u304f\u306a\u308b\u6c17\u304c\u3059\u308b\u306e\u3067\u3059\u304c\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>QNAP\u306eNAS\u306b\u306f\u3001Container Station\u3068\u3044\u3046\u30a2\u30d7\u30ea\u304c\u3042\u308aDocker\u30b3\u30f3\u30c6\u30ca\u3092\u624b\u8efd\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u524d\u306bGitlab\u3092\u7acb\u3061\u4e0a\u3052\u3066\u516c\u958b\u3057\u3066\u3044\u308b\u30bd\u30d5\u30c8\u3092\u4fdd\u6301\u3057\u3066\u3082\u3089\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4e45\u3005\u306b\u4f7f\u304a\u3046\u3068\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[5,20,15],"tags":[],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-linux","category-pc","category-15","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/poca256.com\/index.php?rest_route=\/wp\/v2\/posts\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poca256.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poca256.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poca256.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/poca256.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=556"}],"version-history":[{"count":9,"href":"https:\/\/poca256.com\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/poca256.com\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/poca256.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poca256.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poca256.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}