{"id":7465,"date":"2016-04-27T07:38:15","date_gmt":"2016-04-27T07:38:15","guid":{"rendered":"https:\/\/www.viafirma.com\/blog-xnoccio\/?p=7465"},"modified":"2026-01-20T13:32:52","modified_gmt":"2026-01-20T13:32:52","slug":"docker-does-not-work","status":"publish","type":"post","link":"https:\/\/www.viafirma.com\/en\/docker-does-not-work\/","title":{"rendered":"Docker is not working (Error response from daemon)"},"content":{"rendered":"<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">Today <a href=\"https:\/\/www.viafirma.com\/en\/\" target=\"_blank\" rel=\"noopener noreferrer\">Viafirma<\/a> will use this post to discuss about Docker, an very interesting alternative to the virtualization of Operative Systems, In addition, we will explain you how to resolve the following error: <em>response from daemon- rpc error- code = 2 desc = -oci runtime error- exit status 1-. Are you ready? We started. <\/em><\/span><\/i><\/p>\n<p><!--more--><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">As it was mentioned before, Docker has become a really interesting alternative to the virtualization of Operative Systems, due to the fact that it is based on displaying containers that share resources with the host systems in instead of installing a complete O.S.:<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">This philosophy is translated in a smaller consumption of resources, therefore is it possible to display multiple containers in the same host system, notably reducing the load that this supposes for it. Somehow, this solution is very smart, because it avoids redundancy: <em>Why replicates several times the same resources when I can share them? <\/em><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">I really like the idea, let\u00b4s try it in my computer (Ubuntu 12.04).<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Initially, it seems that the installation process, following the steps indicated on the website, is very simple. You only need to execute the following command:<\/span><\/p>\n<p><code>$ curl -fsSL https:\/\/get.docker.com\/ | sh<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Everything is ok till here, but as it is usually happens in automated processes, when problems arise you cannot do much. Now is the time to try the installation with:<\/span><\/p>\n<p><code>$ docker run hello-world<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Suddenly you receive this wonderful message:<\/span><\/p>\n<p><code>Error response from daemon: rpc error: code = 2 desc = \"oci runtime error: exit status 1\"<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">How can this happen? I have just followed the only step required for the installing.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">If you look for solutions on the Internet, you are going to find an incredibly high numbers of different answers, it is seems that there are not much consensus on how to sort it, but in one thing: Docker does not work with kernell 3.2 or older versions. Therefore, a first step would be to double check that your Kernel is newer than that. The problem comes when you confirm that it is and it is still not working, what\u00b4s wrong here?<\/span><\/p>\n<h3 style=\"text-align: justify;\">How to sort in Docker the error: \u2018Error response from daemon- rpc error- code = 2 desc = -oci runtime error- exit status 1-\u2018<\/h3>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Even though it seems complicated, the answer is very simple: your version of OS\/Kernell is not compatible with the version that you have installed. The magic command that we mentioned before to install Docker only download the latest version, however, if your OS is not the latest one, it can get you in troubles (Ubuntu 12.04. for example). How to sort it? Simple, download a older version following the next steps:<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Download the key from the repository:<\/span><\/p>\n<p><code>$ sudo apt-key adv --keyserver hkp:\/\/keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Settle the repository:<\/span><\/p>\n<p><code>$ sudo sh -c \"echo deb https:\/\/get.docker.io\/ubuntu docker main &gt; \/etc\/apt\/sources.list.d\/docker.list\"<\/code><br \/>\n<code>$ sudo apt-get update<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Look for the available versions:<\/span><\/p>\n<p><code>$ sudo apt-cache search docker<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Install the last one listed (in this case, 1.9.1):<\/span><\/p>\n<p><code>$ sudo apt-get install lxc-docker-1.9.1<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Enable the execution with your current user:<\/span><\/p>\n<p><code>$ sudo usermod -aG docker tu_usuario<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">Authorise the execution :<\/span><\/p>\n<p><code>$ docker run hello-world<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\"> If everything has been correct, now you can finally receive the message that you were waiting for since the beginning:<\/span><\/p>\n<blockquote>\n<p style=\"text-align: justify;\"><em><span style=\"font-weight: 400;\">Hello from Docker.<\/span><\/em><\/p>\n<p style=\"text-align: justify;\"><em><span style=\"font-weight: 400;\">This message shows that your installation appears to be working correctly.<\/span><\/em><\/p>\n<\/blockquote>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">It is very important to take into considerations that this steps has been done using Ubuntu 12.04.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">We really hope that this information is useful for you and if you have any questions, please let us know.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400;\">See you next week!<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"vf_related_posts_wrapper\"><h2 class=\"vf_related_posts_title\">Related information<\/h2><div class=\"vf_related_posts\"><article class=\"vc_gitem-post-data-source-post\"><a href=\"https:\/\/www.viafirma.com\/en\/detect-at-a-low-level-if-a-file-is-utf-8-from-java\/\" class=\"vc_gitem-post-link\"><div class=\"vc_gitem-post-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"350\" src=\"https:\/\/www.viafirma.com\/wp-content\/uploads\/2007\/12\/java-768x350.webp\" class=\" wp-post-image\" alt=\"java\" srcset=\"https:\/\/www.viafirma.com\/wp-content\/uploads\/2007\/12\/java-768x350.webp 768w, https:\/\/www.viafirma.com\/wp-content\/uploads\/2007\/12\/java-300x137.webp 300w, https:\/\/www.viafirma.com\/wp-content\/uploads\/2007\/12\/java.jpg 1000w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/div><\/a><div class=\"vc_gitem-post-data\"><h3 class=\"vc_gitem-post-data-source-post_title\"><a href=\"https:\/\/www.viafirma.com\/en\/detect-at-a-low-level-if-a-file-is-utf-8-from-java\/\">Detect at a low level if a file is UTF-8 from Java<\/a><\/h3><p class=\"vc_gitem-post-data-source-post_excerpt\">Although initially it seems a very simple task, those who<\/p><\/div><\/article><article class=\"vc_gitem-post-data-source-post\"><a href=\"https:\/\/www.viafirma.com\/en\/haversine-formula-implementation-in-java\/\" class=\"vc_gitem-post-link\"><div class=\"vc_gitem-post-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"341\" src=\"https:\/\/www.viafirma.com\/wp-content\/uploads\/2008\/11\/java_haversine-768x341.webp\" class=\" wp-post-image\" alt=\"haversine\" srcset=\"https:\/\/www.viafirma.com\/wp-content\/uploads\/2008\/11\/java_haversine-768x341.webp 768w, https:\/\/www.viafirma.com\/wp-content\/uploads\/2008\/11\/java_haversine-300x133.webp 300w, https:\/\/www.viafirma.com\/wp-content\/uploads\/2008\/11\/java_haversine.jpg 1000w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/div><\/a><div class=\"vc_gitem-post-data\"><h3 class=\"vc_gitem-post-data-source-post_title\"><a href=\"https:\/\/www.viafirma.com\/en\/haversine-formula-implementation-in-java\/\">Haversine formula implementation in Java<\/a><\/h3><p class=\"vc_gitem-post-data-source-post_excerpt\">Implement the Haversine formula in Java<\/p><\/div><\/article><\/div><\/div><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"Today Viafirma will use this post to discuss about Docker,...","protected":false},"author":1,"featured_media":8819,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[58],"class_list":["post-7465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/posts\/7465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/comments?post=7465"}],"version-history":[{"count":2,"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/posts\/7465\/revisions"}],"predecessor-version":[{"id":97347,"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/posts\/7465\/revisions\/97347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.viafirma.com\/en\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/media?parent=7465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.viafirma.com\/en\/wp-json\/wp\/v2\/categories?post=7465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}