{"id":1833,"date":"2022-06-15T18:32:00","date_gmt":"2022-06-16T01:32:00","guid":{"rendered":"https:\/\/jmcristobal.com\/?p=1833"},"modified":"2022-04-28T14:21:15","modified_gmt":"2022-04-28T21:21:15","slug":"install-docker-in-ubuntu","status":"publish","type":"post","link":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/06\/15\/install-docker-in-ubuntu\/","title":{"rendered":"Instalar Docker en Ubuntu"},"content":{"rendered":"<p>En este art\u00edculo aprenderemos a instalar Docker en un sistema operativo Ubuntu 20.04.<\/p>\n\n\n\n<h4>1.-Instalar los requisitos iniciales con los siguientes comandos.<\/h4>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">sudo apt-get update\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">sudo apt-get install \\\\\n apt-transport-https \\\\\n ca-certificates \\\\\n curl \\\\\n gnupg-agent \\\\\n software-properties-common\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4>2.- A\u00f1adir la clave GPG oficial de Docker:<\/h4>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/docker-archive-keyring.gpg<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4>3.- A\u00f1adir el repositorio Docker:<\/h4>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">echo \\\n  \"deb [arch=$(dpkg --print-architecture) signed-by=\/usr\/share\/keyrings\/docker-archive-keyring.gpg] https:\/\/download.docker.com\/linux\/ubuntu \\\n  $(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4>4.- Actualizamos e instalamos la \u00faltima versi\u00f3n de Docker:<\/h4>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\"> sudo apt-get update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">sudo apt-get install docker-ce docker-ce-cli containerd.io<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4>5.- Verificar la versi\u00f3n de Docker:<\/h4>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">sudo docker version<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4>6.- Ejecutar la imagen hello-world para validar que Docker funciona:<\/h4>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">sudo docker run hello-world<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4>7.- Ejecutar comandos Docker sin sudo:<\/h4>\n\n\n\n<p>Si quieres evitar escribir <strong>sudo<\/strong> cada vez que ejecutes un comando relacionado con Docker, ejecuta el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">sudo usermod -aG docker ${USER}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Finalmente, aplique los cambios al grupo, salga de su sesi\u00f3n actual y vuelva a entrar, o escriba el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">su - ${USER}<\/code><\/pre>\n\n\n\n<p>Se le pedir\u00e1 que introduzca la contrase\u00f1a del usuario para continuar.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Confirme que su usuario ha sido a\u00f1adido al grupo Docker. <strong>Docker<\/strong> group.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash\">id -nG<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>M\u00e1s informaci\u00f3n sobre la instalaci\u00f3n de Docker en diferentes distribuciones de Linux <a href=\"https:\/\/docs.docker.com\/engine\/install\/#server\">https:\/\/docs.docker.com\/engine\/install\/#server<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>In this article we will learn how to install Docker on an Ubuntu 20.04 operating system. 1.-Installing the initial requirements with the <\/p>","protected":false},"author":2,"featured_media":1843,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[529,237],"tags":[531,587,530],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install Docker in Ubuntu - JMCristobal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Docker in Ubuntu - JMCristobal\" \/>\n<meta property=\"og:description\" content=\"In this article we will learn how to install Docker on an Ubuntu 20.04 operating system. 1.-Installing the initial requirements with the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"JMCristobal\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/JMCristobalHomepage\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-16T01:32:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-28T21:21:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2022\/04\/Docker-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"463\" \/>\n\t<meta property=\"og:image:height\" content=\"318\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JMCristobal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:site\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"JMCristobal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\"},\"author\":{\"name\":\"JMCristobal\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\"},\"headline\":\"Install Docker in Ubuntu\",\"datePublished\":\"2022-06-16T01:32:00+00:00\",\"dateModified\":\"2022-04-28T21:21:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\"},\"wordCount\":148,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#organization\"},\"keywords\":[\"devnet\",\"docker\",\"linux\"],\"articleSection\":[\"Devnet\",\"Linux\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\",\"url\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\",\"name\":\"Install Docker in Ubuntu - JMCristobal\",\"isPartOf\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#website\"},\"datePublished\":\"2022-06-16T01:32:00+00:00\",\"dateModified\":\"2022-04-28T21:21:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Docker in Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#website\",\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/\",\"name\":\"JMCristobal\",\"description\":\"Networking and more\",\"publisher\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#organization\",\"name\":\"JMCristobal\",\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"contentUrl\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"width\":518,\"height\":436,\"caption\":\"JMCristobal\"},\"image\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/JMCristobalHomepage\",\"https:\/\/web.facebook.com\/JMCristobalHomepage\",\"https:\/\/twitter.com\/jmcristobalhome\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\",\"name\":\"JMCristobal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"caption\":\"JMCristobal\"},\"url\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/author\/jmcristobal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Docker in Ubuntu - JMCristobal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/","og_locale":"es_ES","og_type":"article","og_title":"Install Docker in Ubuntu - JMCristobal","og_description":"In this article we will learn how to install Docker on an Ubuntu 20.04 operating system. 1.-Installing the initial requirements with the","og_url":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/","og_site_name":"JMCristobal","article_publisher":"https:\/\/web.facebook.com\/JMCristobalHomepage","article_published_time":"2022-06-16T01:32:00+00:00","article_modified_time":"2022-04-28T21:21:15+00:00","og_image":[{"width":463,"height":318,"url":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2022\/04\/Docker-logo.png","type":"image\/png"}],"author":"JMCristobal","twitter_card":"summary_large_image","twitter_creator":"@jmcristobalhome","twitter_site":"@jmcristobalhome","twitter_misc":{"Escrito por":"JMCristobal","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#article","isPartOf":{"@id":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/"},"author":{"name":"JMCristobal","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118"},"headline":"Install Docker in Ubuntu","datePublished":"2022-06-16T01:32:00+00:00","dateModified":"2022-04-28T21:21:15+00:00","mainEntityOfPage":{"@id":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/"},"wordCount":148,"commentCount":0,"publisher":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#organization"},"keywords":["devnet","docker","linux"],"articleSection":["Devnet","Linux"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/","url":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/","name":"Install Docker in Ubuntu - JMCristobal","isPartOf":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#website"},"datePublished":"2022-06-16T01:32:00+00:00","dateModified":"2022-04-28T21:21:15+00:00","breadcrumb":{"@id":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jmcristobal.com\/2022\/06\/15\/install-docker-in-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/"},{"@type":"ListItem","position":2,"name":"Install Docker in Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#website","url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/","name":"JMCristobal","description":"Networking and more","publisher":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#organization","name":"JMCristobal","url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/logo\/image\/","url":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","contentUrl":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","width":518,"height":436,"caption":"JMCristobal"},"image":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/JMCristobalHomepage","https:\/\/web.facebook.com\/JMCristobalHomepage","https:\/\/twitter.com\/jmcristobalhome"]},{"@type":"Person","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118","name":"JMCristobal","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","caption":"JMCristobal"},"url":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/author\/jmcristobal\/"}]}},"jetpack_featured_media_url":"https:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/wp-content\/uploads\/2022\/04\/Docker-logo.png","_links":{"self":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts\/1833"}],"collection":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/comments?post=1833"}],"version-history":[{"count":10,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts\/1833\/revisions"}],"predecessor-version":[{"id":1847,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts\/1833\/revisions\/1847"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/media\/1843"}],"wp:attachment":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/media?parent=1833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/categories?post=1833"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/tags?post=1833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}