{"id":6339,"date":"2021-04-26T16:04:40","date_gmt":"2021-04-26T10:34:40","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6339"},"modified":"2024-11-05T17:34:44","modified_gmt":"2024-11-05T12:04:44","slug":"unable-to-download-docker-images","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/","title":{"rendered":"Unable to download Docker images behind a proxy"},"content":{"rendered":"\n<p>Let&#8217;s have a glance at troubleshooting dockers issues like Unable to download Docker images behind a proxy<\/p>\n\n\n\n<p>As a part of\u00a0our <a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#026e9c\" class=\"has-inline-color\">server management services<\/span><\/a>, we use to handle several such Docker-related issues. You can also consult our technical team support for further assistance. Here in this blog we will see how to resolve this issue<\/p>\n\n\n\n<p><strong>&nbsp;Fixing the error.<\/strong><\/p>\n\n\n\n<p>One of our client reports where he tries to run the below command to install <a href=\"https:\/\/www.docker.com\/\">Docker<\/a> on the ubuntu server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker pull busybox<\/code><\/pre>\n\n\n\n<p>The following error was displayed on the screen<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Pulling repository busybox\n2021\/03\/16 09:37:07 Get https:\/\/index.docker.io\/v1\/repositories\/busybox\/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: no answer from server<\/code><\/pre>\n\n\n\n<p><strong>How to resolve the error<\/strong><\/p>\n\n\n\n<p>In order to resolve this problem, we first create a systemd drop-in directory for the Docker service and then execute the command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/etc\/systemd\/system\/docker.service.d<\/code><\/pre>\n\n\n\n<p>Later, create a file called \/etc\/systemd\/system\/docker.service.d\/http-proxy.conf that adds the HTTP_PROXY environment variable:<\/p>\n\n\n\n<p>[Service]<\/p>\n\n\n\n<p>Environment=&#8221;HTTP_PROXY=http:\/\/proxy.example.com:80\/&#8221;<\/p>\n\n\n\n<p>Note: In case, if you have internal Docker registries then contact without proxying you can specify them via the NO_PROXY environment variable:<\/p>\n\n\n\n<p>Environment<em>=&#8221;HTTP_PROXY=<\/em>http:\/\/proxy.example.com:80\/&#8221;<\/p>\n\n\n\n<p>Environment=&#8221;NO_PROXY=localhost,127.0.0.0\/8,docker-registry.somecorporation.com&#8221;<\/p>\n\n\n\n<p>Executive the commands to flush the changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl daemon-reload<\/code><\/pre>\n\n\n\n<p>Run the command to verify whether the configuration is loaded or not.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl show --property Environment docker<\/code><\/pre>\n\n\n\n<p>Environment=HTTP_PROXY=http:\/\/proxy.example.com:80\/<\/p>\n\n\n\n<p>Run the following command in order to restart the docker<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl restart docker<\/code><\/pre>\n\n\n\n<p>This will fix the error.<\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>In short, follow the methods to resolve the issue &#8220;Unable to download Docker images behind a proxy&#8221;. Need further assistance to fix any sort of error, get in touch with us with <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#0572a1\" class=\"has-inline-color\">24\/7 technical support<\/span><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s have a glance at troubleshooting dockers issues like Unable to download Docker images behind a proxy As a part of\u00a0our server management services, we use to handle several such Docker-related issues. You can also consult our technical team support for further assistance. Here in this blog we will see how to resolve this issue [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,127,68],"tags":[501],"class_list":["post-6339","post","type-post","status-publish","format-standard","hentry","category-blog","category-docker","category-server-management","tag-cannot-download-docker-images-behind-a-proxy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>unable to download Docker images behind a proxy<\/title>\n<meta name=\"description\" content=\"Learn how to resolve issues like unable to download Docker images behind a proxy using our guide for Docker proxy settings.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unable to download Docker images behind a proxy\" \/>\n<meta property=\"og:description\" content=\"Learn how to resolve issues like unable to download Docker images behind a proxy using our guide for Docker proxy settings.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-26T10:34:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-05T12:04:44+00:00\" \/>\n<meta name=\"author\" content=\"Nabeela\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nabeela\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/\"},\"author\":{\"name\":\"Nabeela\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\"},\"headline\":\"Unable to download Docker images behind a proxy\",\"datePublished\":\"2021-04-26T10:34:40+00:00\",\"dateModified\":\"2024-11-05T12:04:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/\"},\"wordCount\":265,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"cannot download docker images behind a proxy\"],\"articleSection\":[\"Blog\",\"docker\",\"server management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/\",\"name\":\"unable to download Docker images behind a proxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-04-26T10:34:40+00:00\",\"dateModified\":\"2024-11-05T12:04:44+00:00\",\"description\":\"Learn how to resolve issues like unable to download Docker images behind a proxy using our guide for Docker proxy settings.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-download-docker-images\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unable to download Docker images behind a proxy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\",\"name\":\"Nabeela\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"caption\":\"Nabeela\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"unable to download Docker images behind a proxy","description":"Learn how to resolve issues like unable to download Docker images behind a proxy using our guide for Docker proxy settings.","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:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/","og_locale":"en_US","og_type":"article","og_title":"Unable to download Docker images behind a proxy","og_description":"Learn how to resolve issues like unable to download Docker images behind a proxy using our guide for Docker proxy settings.","og_url":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-04-26T10:34:40+00:00","article_modified_time":"2024-11-05T12:04:44+00:00","author":"Nabeela","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Nabeela","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/"},"author":{"name":"Nabeela","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0"},"headline":"Unable to download Docker images behind a proxy","datePublished":"2021-04-26T10:34:40+00:00","dateModified":"2024-11-05T12:04:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/"},"wordCount":265,"commentCount":0,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["cannot download docker images behind a proxy"],"articleSection":["Blog","docker","server management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/","url":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/","name":"unable to download Docker images behind a proxy","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-04-26T10:34:40+00:00","dateModified":"2024-11-05T12:04:44+00:00","description":"Learn how to resolve issues like unable to download Docker images behind a proxy using our guide for Docker proxy settings.","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/unable-to-download-docker-images\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Unable to download Docker images behind a proxy"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0","name":"Nabeela","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","caption":"Nabeela"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6339"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6339\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}