{"id":2063,"date":"2015-09-25T10:20:32","date_gmt":"2015-09-25T15:20:32","guid":{"rendered":"http:\/\/alejandroayala.solmedia.ec\/?p=2063"},"modified":"2015-09-25T10:33:45","modified_gmt":"2015-09-25T15:33:45","slug":"actualizar-el-kernel-a-la-version-4-0-x-en-ubuntu-14-04-impide-que-docker-funcione","status":"publish","type":"post","link":"https:\/\/alejandroayala.solmedia.ec\/?p=2063","title":{"rendered":"Actualizar el kernel a la versi\u00f3n 4.0.x en Ubuntu 14.04 impide que Docker funcione"},"content":{"rendered":"<p>Luego de instalar <a href=\"https:\/\/www.docker.com\/\" target=\"_blank\"><em>Docker<\/em><\/a> en Ubuntu 14.04 seg\u00fan la documentaci\u00f3n oficial, el demonio de este servicio se ejecuta autom\u00e1ticamente despu\u00e9s de cada <em>booteo<\/em>, cosa que a mi no me ocurri\u00f3 ya que al intentar lanzar alguna m\u00e1quina virtual ten\u00eda el siguiente error:<\/p>\n<p>[bash]<br \/>\nCannot connect to the Docker daemon. Is &#8216;docker -d&#8217; running on this host?<br \/>\n[\/bash]<\/p>\n<p>El mensaje muy claro, el demonio no est\u00e1 ejecut\u00e1ndose, se corre el siguiente comando:<\/p>\n<p><!--more--><\/p>\n<p>[bash]<br \/>\nsudo docker -d &amp;<br \/>\n[\/bash]<\/p>\n<p>Pero esta vez no funcion\u00f3, arrojando el siguiente error:<\/p>\n<p>[bash]<br \/>\nERRO[0000] [graphdriver] prior storage driver &quot;aufs&quot; failed:<br \/>\ndriver not supported<br \/>\nFATA[0000] Error starting daemon: error initializing graphdriver:<br \/>\ndriver not supported <\/p>\n<p>[1]+  Salida 1                sudo docker -d<br \/>\n[\/bash]<\/p>\n<p>Luego record\u00e9 que hab\u00eda actualizado mi kernel, de la versi\u00f3n 3.16 que es la que viene en la versi\u00f3n 14.04 de Ubuntu a la 4.1.6, e<strong>ste era el problema que hab\u00eda impedido que el demonio docker no se lanzara<\/strong>.<\/p>\n<p>Buscando en la <em>web<\/em>, resulta que a partir de la versi\u00f3n 4.0 del kernel <strong>el soporte para <em>aufs<\/em> hab\u00eda terminado<\/strong>, el siguiente truco permite lanzar de nuevo <em>docker<\/em>.<\/p>\n<p>Eliminar de <em>docker<\/em> las librer\u00edas de <em>aufs<\/em><\/p>\n<p>[bash]<br \/>\nrm -rf \/var\/lib\/docker\/aufs<br \/>\n[\/bash]<\/p>\n<p>Finalmente al correr nuevamente el comando<\/p>\n<p>[bash]<br \/>\nsudo docker -d &amp;<br \/>\n[\/bash]<\/p>\n<p><em>Docker<\/em> ya puede arrancar<\/p>\n<p>[bash]<br \/>\n[0000] Listening for HTTP on unix (\/var\/run\/docker.sock)<br \/>\nWARN[0000] Udev sync is not supported. This will lead to unexpected<br \/>\nbehavior, data loss and errors.<br \/>\nFor more information, see<br \/>\nhttps:\/\/docs.docker.com\/reference\/commandline\/cli\/#daemon-storage-driver-option<br \/>\n[\/bash]<\/p>\n<p>En el siguiente enlace hay m\u00e1s informaci\u00f3n al respecto por si alguien quiere indagar<\/p>\n<p><a href=\"https:\/\/github.com\/docker\/docker\/issues\/14026\" target=\"_blank\">https:\/\/github.com\/docker\/docker\/issues\/14026<\/a><\/p>\n<h3>EOF<\/h3>\n\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=a1ejo_ayala\" class=\"twitter-share-button\" data-size=\"large\">Twittear<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Luego de instalar Docker en Ubuntu 14.04 seg\u00fan la documentaci\u00f3n oficial, el demonio de este servicio se ejecuta autom\u00e1ticamente despu\u00e9s de cada booteo, cosa que a mi no me ocurri\u00f3 ya que al intentar lanzar alguna m\u00e1quina virtual ten\u00eda el siguiente error: [bash] Cannot connect to the Docker daemon. Is &#8216;docker -d&#8217; running on this\u2026 <span class=\"read-more\"><a href=\"https:\/\/alejandroayala.solmedia.ec\/?p=2063\">Leer m\u00e1s &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":2064,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[8],"tags":[518,519,516,517,88],"_links":{"self":[{"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/posts\/2063"}],"collection":[{"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2063"}],"version-history":[{"count":5,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/posts\/2063\/revisions"}],"predecessor-version":[{"id":2069,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/posts\/2063\/revisions\/2069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=\/wp\/v2\/media\/2064"}],"wp:attachment":[{"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alejandroayala.solmedia.ec\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}