{"id":973,"date":"2022-08-13T16:05:08","date_gmt":"2022-08-13T19:05:08","guid":{"rendered":"https:\/\/blog.galsoft.duckdns.org\/?p=973"},"modified":"2026-04-14T21:02:33","modified_gmt":"2026-04-15T00:02:33","slug":"instalar-docker-y-docker-compose-en-manjaro","status":"publish","type":"post","link":"https:\/\/blog.galsoft.com.ar\/?p=973","title":{"rendered":"Instalar Docker f\u00e1cilmente"},"content":{"rendered":"<h2>Opci\u00f3n 1: Script de instalaci\u00f3n completa en Ubuntu mediante apt (mas control)<\/h2>\n<pre><code class=\"lang-bash language-bash bash\"># 1. Actualizar e instalar dependencias\nsudo apt update\nsudo apt install -y ca-certificates curl gnupg lsb-release\n\n# 2. Agregar la clave GPG oficial de Docker\nsudo install -m 0755 -d \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\nsudo chmod a+r \/etc\/apt\/keyrings\/docker.gpg\n\n# 3. Agregar el repositorio\necho \\\n  &quot;deb [arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/ubuntu \\\n  $(. \/etc\/os-release &amp;&amp; echo &quot;$VERSION_CODENAME&quot;) stable&quot; | \\\n  sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null\n\n# 4. Instalar Docker Engine y Compose\nsudo apt update\nsudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\n\n# 5. Iniciar Docker y habilitarlo en el arranque\nsudo systemctl enable --now docker\n\n# 6. Agregar usuario al grupo docker\nsudo usermod -aG docker $USER\n\n# 7. Para no necesitar reiniciar sesi&oacute;n\nnewgrp docker<\/code><\/pre>\n<h2>Opci\u00f3n 2: Script autom\u00e1tico (m\u00e1xima simplicidad)<\/h2>\n<h3>Instalamos docker<\/h3>\n<pre><code class=\"lang-bash language-bash bash\">curl -sSL https:\/\/get.docker.com | sh<\/code><\/pre>\n<h3>Para no necesitar privilegios elevados (sudo)<\/h3>\n<pre><code class=\"lang-bash language-bash bash\">sudo usermod -aG docker $USER<\/code><\/pre>\n<h3>Setear rootless mode<\/h3>\n<pre><code class=\"lang-bash language-bash bash\">dockerd-rootless-setuptool.sh install<\/code><\/pre>\n<h2>En Archlinux y derivadas mediante pacman<\/h2>\n<pre><code class=\"lang-bash language-bash bash\"># 1. Actualizamos sistema e instalamos docker y docker-compose\nsudo pacman -Syu\nsudo pacman -S docker docker-compose\n# 2. Habilitamos e iniciamos servicio\nsudo systemctl enable --now docker\n# 3. Agregar usuario al grupo docker\nsudo usermod -aG docker $USER\nnewgrp docker<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Opci\u00f3n 1: Script de instalaci\u00f3n completa en Ubuntu mediante apt (mas control) # 1. Actualizar e instalar dependencias sudo apt update sudo apt install -y ca-certificates curl gnupg lsb-release # 2. Agregar la clave GPG oficial de Docker sudo install -m 0755 -d \/etc\/apt\/keyrings curl -fsSL <a href=\"https:\/\/download.docker.com\/linux\/ubuntu\/gpg\">https:\/\/download.docker.com\/linux\/ubuntu\/gpg<\/a> | sudo gpg &#8211;dearmor -o \/etc\/apt\/keyrings\/docker.gpg sudo chmod [&hellip;]<\/p>","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":"off","ocean_gallery_id":[],"footnotes":""},"categories":[11,1],"tags":[],"class_list":["post-973","post","type-post","status-publish","format-standard","hentry","category-docker","category-linux","entry"],"_links":{"self":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=973"}],"version-history":[{"count":5,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions"}],"predecessor-version":[{"id":1768,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions\/1768"}],"wp:attachment":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}