Error "Get https://registry-1.docker.io/v2/: net/http: request canceled" while building image - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=7d8876444382) (Feed for question 'Error "Get https://registry-1.docker.io/v2/: net/http: request canceled" while building image') (/feeds/question/48056365) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) (2.0) Sign up with Google Sign up with GitHub OR (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48056365%2ferror-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48056365%2ferror-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48056365%2ferror-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48056365%2ferror-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv maven api linq qt dictionary unit-testing facebook asp.net-core tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony t-sql opencv matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github elasticsearch spring-mvc kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers machine-learning google-sheets c++11 security flask google-apps-script ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join laravel-5 rust winapi url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 web logging dom swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory canvas audio multidimensional-array jsf random vector cookies redux facebook-graph-api input flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce routes razor azure-devops awk servlets mod-rewrite beautifulsoup docker-compose excel-formula iframe filter aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit boost deep-learning import sass memory-management error-handling async-await dynamic eloquent soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split mysqli cmd django-views encoding database-design automation collections netbeans hash build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j lua ansible parameters module material-ui enums visual-studio-2012 promise flexbox outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive tfs scipy count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js constructor powerbi rxjs graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr url-rewriting backbone.js memory-leaks datatables oauth datagridview terraform drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list path proxy timer django-templates arduino orm directory visual-studio-2015 parse-platform windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview visual-studio-2013 gitlab vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process rspec pygame properties combobox callback windows-phone-8 linux-kernel safari permissions scrapy raspberry-pi scripting emacs clojure x86 scope io compilation mongodb-query nhibernate responsive-design angularjs-directive expo request azure-functions bluetooth 3d dns binding reference discord.js architecture playframework version-control pyqt doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree jackson controller yii grep nested xamarin.ios static dockerfile statistics transactions datagrid null active-directory uiviewcontroller phpmyadmin webforms discord.py notifications sas computer-vision duplicates mocking youtube nullpointerexception yaml menu sum bitmap electron asp.net-mvc-5 visual-studio-2008 time-series blazor yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla navigation cors devise anaconda background camera multiprocessing pyqt5 binary frontend cuda linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose android-asynctask microsoft-graph-api tabs laravel-4 insert uicollectionview environment-variables amazon-dynamodb linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system vuejs3 mockito localization xml-parsing macros formatting json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header fortran sprite-kit mfc attributes nuxt.js nosql format azure-pipelines nestjs odoo jquery-plugins db2 jenkins-pipeline leaflet event-handling postman flutter-layout julia annotations keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports timezone dom-events azure-web-app-service android-emulator uikit swagger wso2 sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation webdriver centos html5-canvas widget dialog garbage-collection snowflake-cloud-data-platform numbers concatenation sql-update qml set windows-10 mapreduce tuples smtp ionic2 java-stream rotation modal-dialog spring-data android-edittext http-headers doctrine radio-button nuget grid sonarqube lucene xmlhttprequest internationalization listbox components initialization switch-statement google-play apache-camel boolean serial-port ldap ios5 youtube-api return gdb pivot eclipse-plugin latex frameworks tags containers github-actions dataset asp-classic subquery foreign-keys label copy uinavigationcontroller c++17 delegates google-cloud-storage struts2 migration base64 protractor find sql-server-2008-r2 queue uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration airflow windows-7 r-markdown ssl-certificate vb6 tailwind-css gmail hover jqgrid g++ udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b) Error "Get https://registry-1.docker.io/v2/: net/http: request canceled" while building image (/questions/ask) Ask Question (2018-01-02 06:16:26Z) Asked 7 years, 2 months ago Modified (?lastactivity) (2025-03-15 00:28:03Z) yesterday (Viewed 302,599 times) Viewed 303k times This question shows research effort; it is useful and clear (70:3:31e,16:45125c89a7cfdcbf,10:1742104970,16:309ea86ce2443ee0,8:48056365,570fa83df085194c88d1b0e1473470be8b7c39d37229691c924ce935166435b5) 108 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:4964db356784ba00,10:1742104970,16:9e150424baf7f70c,8:48056365,d86d59b428c3b5f96f619fbd2255fdab40d634fe6dd087f9bc97a95e4bc323c5) Save this question. (/posts/48056365/timeline) Show activity on this post. I am getting the below error while building an image Step 1/10 : FROM ubuntu:14.04 Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-image) (show questions tagged 'docker-image') docker-image (/q/48056365) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/48056365/edit) () Improve this question Follow (70:3:31e,16:3d8d022cd2840503,10:1742104970,16:7ac567eb93a0e654,8:48056365,f29cb7cc306764e1bdc99b4d0ef32671c4d6e9eb077e9abe41f121f778bdb3b1) Follow this question to receive notifications asked (2018-01-02 06:16:26Z) Jan 2, 2018 at 6:16 (/users/8857348/kuldeep-dangi) (Kuldeep Dangi's user avatar) (/users/8857348/kuldeep-dangi) Kuldeep Dangi Kuldeep Dangi (reputation score) 4,462 (6 gold badges) 6 6 gold badges (35 silver badges) 35 35 silver badges (56 bronze badges) 56 56 bronze badges 1 spamming my own answer, but top voted answer has issues --> (https://stackoverflow.com/a/77130871/5079799) stackoverflow.com/a/77130871/5079799 – (/users/5079799/freesoftwareservers) (2,831 reputation) FreeSoftwareServers Commented (2023-09-18 23:22:02Z, License: CC BY-SA 4.0) Sep 18, 2023 at 23:22 (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 31 Answers 31 Sorted by: (/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) 1 (/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b?page=2&tab=scoredesc#tab-top) (Go to page 2) 2 (/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b?page=2&tab=scoredesc#tab-top) (Go to page 2) Next This answer is useful (70:3:31e,16:3381c3044ce4e90d,10:1742104970,16:c8d1e68dd2c6412a,8:48066666,795627fa112968e360c237c75830b5e9121048c9ec247d3879d8bc7890423669) 77 (This answer is not useful) (70:3:31e,16:9024fe7070f90a4a,10:1742104970,16:51452292261f9224,8:48066666,bbda24a3f2bfb5b9e28d60a4edf070a693031d79f1fe17dd0ec1ef33385b18b1) Save this answer. (Loading when this answer was accepted…) (/posts/48066666/timeline) Show activity on this post. I think the issue is that you are behind the proxy which in which case you need to write a manual configuration in Docker systemd service file. That will override the default docker.service file. If you are using Docker for Windows, then simply set the default DNS to 8.8.8.8 on the "vEthernet (DockerNAT)" network adapter. But remember, this is not the best practice as you will be exposing from your office network. In Linux environment, you could add the environment variable as you are behind HTTP_PROXY or HTTPS_PROXY, as you are using port 80 or 443 respectively. As shown below in : /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/" as for HTTPS_PROXY in : /etc/systemd/system/docker.service.d/https-proxy.conf [Service] Environment="HTTPS_PROXY=https://proxy.example.com:443/" Then just restart docker after deamon reload: $ sudo systemctl daemon-reload $ sudo systemctl restart docker Hope this works. Reference: (https://docs.docker.com/engine/admin/systemd/#httphttps-proxy) https://docs.docker.com/engine/admin/systemd/#httphttps-proxy (/a/48066666) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/48066666/edit) () Improve this answer Follow (70:3:31e,16:c3f8a563acaca004,10:1742104970,16:614a6904e6c69e8e,8:48066666,a12f37540932734e512204933d100dca95ee1eb1d84c95ad60b2da8cca706847) Follow this answer to receive notifications (/posts/48066666/revisions) (show all edits to this post) edited (2024-03-01 04:06:35Z) Mar 1, 2024 at 4:06 (/users/14628286/thom-omega) (Thom omega's user avatar) (/users/14628286/thom-omega) Thom omega (reputation score) 60 (7 bronze badges) 7 7 bronze badges answered (2018-01-02 19:25:40Z) Jan 2, 2018 at 19:25 (/users/4671027/mohan08p) (mohan08p's user avatar) (/users/4671027/mohan08p) mohan08p mohan08p (reputation score) 5,392 (1 gold badge) 1 1 gold badge (31 silver badges) 31 31 silver badges (36 bronze badges) 36 36 bronze badges 9 (number of 'useful comment' votes received) 4 No I am not behind any proxy. – (/users/8857348/kuldeep-dangi) (4,462 reputation) Kuldeep Dangi Commented (2018-01-03 04:55:56Z, License: CC BY-SA 3.0) Jan 3, 2018 at 4:55 (number of 'useful comment' votes received) 4 (Can you modify the question with your environment) Cool then try this.. sudo nano /etc/resolv.conf #add these lines on top and above one for home router… nameserver 8.8.8.8 nameserver 8.8.4.4 and then restart the docker. – (/users/4671027/mohan08p) (5,392 reputation) mohan08p Commented (2018-01-03 06:14:43Z, License: CC BY-SA 3.0) Jan 3, 2018 at 6:14 (this comment was edited 2 times) (number of 'useful comment' votes received) 1 The HTTPS_PROXY value should start with "http://..." not "https://..." – (/users/2603345/kurioz7) (6,349 reputation) KurioZ7 Commented (2019-10-29 06:33:57Z, License: CC BY-SA 4.0) Oct 29, 2019 at 6:33 (number of 'useful comment' votes received) 1 If you are on windows and you are using a proxy, changing the proxy settings is way easier: Right click on Docker icon in the windows toolbar --> Settings --> Resources --> PROXIES – (/users/5744858/adrian) (1,999 reputation) Adrian Commented (2020-11-26 12:15:18Z, License: CC BY-SA 4.0) Nov 26, 2020 at 12:15 (number of 'useful comment' votes received) 1 I have an http proxy in my environment, and this configuration worked, Thanks. – (/users/336600/felipe-alvarez) (3,908 reputation) Felipe Alvarez Commented (2021-03-15 01:15:09Z, License: CC BY-SA 4.0) Mar 15, 2021 at 1:15 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 4 more comments This answer is useful (70:3:31e,16:a75d6435414c7e57,10:1742104970,16:692d8c95f302e4a3,8:55072881,95501458060c27bae9dba5ea5bddf1fb736f2b5bce86425373289e891e2e3d52) 58 (This answer is not useful) (70:3:31e,16:8a6c4a7845e3d06e,10:1742104970,16:374538beb37d7c32,8:55072881,3d8ee4e4b05c0c57bc772225dd806ccb3fdd5f6ff672e610d888017d3d758558) Save this answer. (Loading when this answer was accepted…) (/posts/55072881/timeline) Show activity on this post. I had the same problem and the following fix has worked for me: (https://github.com/moby/moby/issues/22635#issuecomment-260063252) https://github.com/moby/moby/issues/22635#issuecomment-260063252 In my case I've added the following 2 nameserver lines to /etc/resolv.conf file. before: nameserver 127.0.0.53 after: nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 127.0.0.53 (/a/55072881) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/55072881/edit) () Improve this answer Follow (70:3:31e,16:7bbebfdd0df244f3,10:1742104970,16:03a40ca0139d12d3,8:55072881,b600b6fb1e1c3979777c7d3452d7deb4fa3e57f0af3c2e65826f6bdab81ead88) Follow this answer to receive notifications (/posts/55072881/revisions) (show all edits to this post) edited (2021-07-19 16:32:04Z) Jul 19, 2021 at 16:32 (/users/3167016/tugordobello) (TuGordoBello's user avatar) (/users/3167016/tugordobello) TuGordoBello (reputation score) 4,510 (9 gold badges) 9 9 gold badges (57 silver badges) 57 57 silver badges (88 bronze badges) 88 88 bronze badges answered (2019-03-09 00:43:44Z) Mar 9, 2019 at 0:43 (/users/2898283/mechatroner) (mechatroner's user avatar) (/users/2898283/mechatroner) mechatroner mechatroner (reputation score) 1,350 (1 gold badge) 1 1 gold badge (18 silver badges) 18 18 silver badges (28 bronze badges) 28 28 bronze badges 2 Correct. But what does this mean? Is Google involved in propagating Docker Hub DNS? – (/users/2639614/fde-capu) (205 reputation) fde-capu Commented (2023-03-10 00:21:08Z, License: CC BY-SA 4.0) Mar 10, 2023 at 0:21 You need to restart the docker daemon to take the changes into account: sudo systemctl restart docker – (/users/802365/%c3%89douard-lopez) (43,419 reputation) Édouard Lopez Commented (2024-01-19 18:23:15Z, License: CC BY-SA 4.0) Jan 19, 2024 at 18:23 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:5320c563f5ef43d4,10:1742104970,16:8dd0c816020bfc57,8:48776535,5439d01cd73bc1b029bf3b860be49d5b1cdacb32878fa067a6f0e12885bfb7a0) 51 (This answer is not useful) (70:3:31e,16:44548b634746e5c7,10:1742104970,16:b43d89acb7f5f948,8:48776535,0f26f483f7c657af48027fd039ecf356b30e4a316d741cd8946132b03ba8e08a) Save this answer. (Loading when this answer was accepted…) (/posts/48776535/timeline) Show activity on this post. I was facing the same issue when trying to build or pull an image with Docker on Win10. Changing the DNS of the Docker vEthernet(DockerNAT) network adapter to 8.8.8.8 fixed it for me, as described in this (https://github.com/moby/moby/issues/22635) GitHub issue . To change the DNS go to Docker (TrayIcon) -> Settings -> Resources -> Network and set a fixed DNS server ip = 8.8.8.8 . Changing the DNS server in the configuration of the windows network adapter worked too. After restarting Docker is able to pull and build images again. Version Info: Windows 10 x64 Enterprise Version 1709 $ docker version Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:05:22 2017 OS/Arch: windows/amd64 Server: Engine: Version: 17.12.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:12:29 2017 OS/Arch: linux/amd64 Experimental: true (/a/48776535) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/48776535/edit) () Improve this answer Follow (70:3:31e,16:41e81475e0fe77e2,10:1742104970,16:9aa1ad4ea91722d8,8:48776535,aaabad358738b1e5df011c0fc749a4572b2917bbe2d1796982ccce5d946ea023) Follow this answer to receive notifications (/posts/48776535/revisions) (show all edits to this post) edited (2020-03-12 06:19:24Z) Mar 12, 2020 at 6:19 (/users/2207445/ilya-palachev) (Ilya Palachev's user avatar) (/users/2207445/ilya-palachev) Ilya Palachev (reputation score) 304 (1 gold badge) 1 1 gold badge (2 silver badges) 2 2 silver badges (17 bronze badges) 17 17 bronze badges answered (2018-02-13 22:13:37Z) Feb 13, 2018 at 22:13 (/users/4325347/bwibo) (bwibo's user avatar) (/users/4325347/bwibo) bwibo bwibo (reputation score) 691 (4 silver badges) 4 4 silver badges (11 bronze badges) 11 11 bronze badges 1 (number of 'useful comment' votes received) 1 Thanks !! by the way i used clouflare's dns ( 1.1.1.1 ) its a little bit faster.. – (/users/3645698/beatingbytes) (351 reputation) BeatingBytes Commented (2019-07-23 10:44:39Z, License: CC BY-SA 4.0) Jul 23, 2019 at 10:44 (this comment was edited 1 time) (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:856fc8dcc38c0633,10:1742104970,16:e958c0313d61ae8e,8:67374500,ab848ae1e460aaed550d77bcc20f2e3646deb62d8882b07afbf1f7ae31552887) 47 (This answer is not useful) (70:3:31e,16:6ac1b4e581d39224,10:1742104970,16:295bc249896fd677,8:67374500,7301ba6310853a5e6a30f463f091144746af57a70b833d5661353686577e0967) Save this answer. (Loading when this answer was accepted…) (/posts/67374500/timeline) Show activity on this post. On Mac OS X, I fixed this issue by not using the experimental virtualization framework. Preferences -> Experimental Features (/a/67374500) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/67374500/edit) () Improve this answer Follow (70:3:31e,16:1139a019bb4f91b4,10:1742104970,16:10e61327bb6fe0c6,8:67374500,fbd5588b96feafe85cec4c63e701b12278ae99a4bad65499810f814d10ea6bf5) Follow this answer to receive notifications answered (2021-05-03 19:07:44Z) May 3, 2021 at 19:07 (/users/6921363/mirek) (Mirek's user avatar) (/users/6921363/mirek) Mirek Mirek (reputation score) 571 (4 silver badges) 4 4 silver badges (2 bronze badges) 2 2 bronze badges 5 Confirming this fixed for me. Big Sur 11.3.1 & Intel with Docker Engine 20.10.6 – (/users/663045/groksrc) (3,025 reputation) groksrc Commented (2021-05-19 15:28:55Z, License: CC BY-SA 4.0) May 19, 2021 at 15:28 Big Sur 11.3.1, m1, Docker 20.10.6 works perfectly fine now – (/users/14762481/aidos-rustem) (203 reputation) Aidos Rustem Commented (2021-05-20 08:34:39Z, License: CC BY-SA 4.0) May 20, 2021 at 8:34 So, how do we get this to work with Big Sur experimental VF or is this just something that can't work yet? – (/users/2115741/saxzez) (142 reputation) saxzez Commented (2021-05-23 00:21:56Z, License: CC BY-SA 4.0) May 23, 2021 at 0:21 That's it, thanks! It worked at some point on my machine but sounds like macOS 11.3.1 broke something. Will have to try on 11.4. – (/users/3864300/frankie567) (1,760 reputation) frankie567 Commented (2021-05-26 11:48:44Z, License: CC BY-SA 4.0) May 26, 2021 at 11:48 This made my docker-desktop go crazy and now I can not get it to stable state nor quit even after rebooting my mac m1. – (/users/17402986/ashraf-minhaj) (1,193 reputation) ashraf minhaj Commented (2024-01-02 05:49:09Z, License: CC BY-SA 4.0) Jan 2, 2024 at 5:49 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:34f93834b4c7b314,10:1742104970,16:68a5812106dda4ba,8:69009969,ae6b1f8b3ea3ea2ad134fff44b5c309076bf76ed537f0249dc2c60f98a3373a7) 27 (This answer is not useful) (70:3:31e,16:c4df48e5f2d6c6d5,10:1742104970,16:e336e5710139bcbb,8:69009969,5caf4d09c66443fd3ae00fe9b44e79a50fb03f94d73adf35e44448c633d249d9) Save this answer. (Loading when this answer was accepted…) (/posts/69009969/timeline) Show activity on this post. I got the same error and it was resolved by docker logout registry-1.docker.io (/a/69009969) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69009969/edit) () Improve this answer Follow (70:3:31e,16:1aea421e9f796956,10:1742104970,16:7897e24fc98fea96,8:69009969,8beb41d8d6fe21bac49e03cd941309da5b36bc9d803dd199886208f84c18e52a) Follow this answer to receive notifications answered (2021-09-01 08:05:24Z) Sep 1, 2021 at 8:05 (/users/7656889/felixvo) (FelixVo's user avatar) (/users/7656889/felixvo) FelixVo FelixVo (reputation score) 381 (3 silver badges) 3 3 silver badges (6 bronze badges) 6 6 bronze badges 1 (number of 'useful comment' votes received) 3 I installed docker while in VPN connection, figured out issue was related to vpn setting, but executing just this single line of command resolves the problem! – (/users/7664524/gahan) (4,213 reputation) Gahan Commented (2021-11-01 18:39:35Z, License: CC BY-SA 4.0) Nov 1, 2021 at 18:39 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:0afd296e3fe7330f,10:1742104970,16:e7edd224f5cf01ff,8:53078746,3456d8f3f72feead2c204e761d32ea9e2fa486e3756030f079f5d7371839ad23) 8 (This answer is not useful) (70:3:31e,16:47a8ad6ebcf60c05,10:1742104970,16:590b21e61d34aef1,8:53078746,9f6820cdec89d6366a06bd92689d04ed6c069b666430fb0e930f0a9e85aa87ec) Save this answer. (Loading when this answer was accepted…) (/posts/53078746/timeline) Show activity on this post. I had the same issue and only found out after 30 minutes that I was on a VPN network for work which blocks other sites. I went off the VPN, and it worked :) This is definitely a network issue. When it said "not authenticated", I thought perhaps I needed some login credentials or so. (/a/53078746) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/53078746/edit) () Improve this answer Follow (70:3:31e,16:0ecf064b90f50816,10:1742104970,16:df6db8e1d4cb1644,8:53078746,2889e705ae00e36bf6d863c5ba05178134b19733d5f70a1604c47345682ec7bc) Follow this answer to receive notifications answered (2018-10-31 07:59:20Z) Oct 31, 2018 at 7:59 (/users/9369412/sydney-molobela) (Sydney Molobela's user avatar) (/users/9369412/sydney-molobela) Sydney Molobela Sydney Molobela (reputation score) 193 (4 silver badges) 4 4 silver badges (10 bronze badges) 10 10 bronze badges 0 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:675146e864fae6b3,10:1742104970,16:9dd1678e5a9a308f,8:58636165,82341c21c5bd8f584d6f955caed5623b341a5d5c3cf30962c15e82212a13972b) 8 (This answer is not useful) (70:3:31e,16:a2c33f46fd28ee21,10:1742104970,16:7aa61ba5f997ad92,8:58636165,5e3b7b798163f879f08c28d0c4bcc99f7935ad3500348eb86acc7a3ff4cc12f2) Save this answer. (Loading when this answer was accepted…) (/posts/58636165/timeline) Show activity on this post. I face this problem when performing Ansible AWX installation. I had my own private DNS :192.168.0.254 & 192.168.0.253 but was receiving same error. Issue got resolved after change my DNS back to 8.8.8.8 & 8.8.4.4. (/a/58636165) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/58636165/edit) () Improve this answer Follow (70:3:31e,16:0bbf67c85024912a,10:1742104970,16:863473b4c0ae4b8a,8:58636165,d2356e0e2318182af141f855aa2854eae15dc028b39815b2836f117642acf01e) Follow this answer to receive notifications answered (2019-10-31 02:28:42Z) Oct 31, 2019 at 2:28 (/users/12300437/bariou-alarou) (Bariou Alarou's user avatar) (/users/12300437/bariou-alarou) Bariou Alarou Bariou Alarou (reputation score) 101 (1 silver badge) 1 1 silver badge (1 bronze badge) 1 1 bronze badge 0 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:6c88b2637c5e4bfd,10:1742104970,16:56cd4cc592647f80,8:67605786,e3194a94270b1de6dea9f39229edd917c783fb9ea81423566f0ea852110ef7ac) 6 (This answer is not useful) (70:3:31e,16:ce22306fb8645d3c,10:1742104970,16:cd1f420de76d9f8b,8:67605786,de612cb988787ed673e6f87290c32db47651186601134dc515aff24a3936853e) Save this answer. (Loading when this answer was accepted…) (/posts/67605786/timeline) Show activity on this post. This error occurs on Big Sur 11.3.1, Intel when you check the box for "Use new virtualization framework" under the Experimental Features tab. Unchecking the box and restarting Docker fixed this problem for me. (/a/67605786) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/67605786/edit) () Improve this answer Follow (70:3:31e,16:4b928db5500adaf0,10:1742104970,16:ae3a7ad4c9cae567,8:67605786,7be64c49a2444f301f858fd3832a5f26385f2f9c0416e13e2231809478dc77b7) Follow this answer to receive notifications answered (2021-05-19 14:59:55Z) May 19, 2021 at 14:59 (/users/663045/groksrc) (groksrc's user avatar) (/users/663045/groksrc) groksrc groksrc (reputation score) 3,025 (1 gold badge) 1 1 gold badge (30 silver badges) 30 30 silver badges (29 bronze badges) 29 29 bronze badges 1 I had the same problem. Doing factory reset seemed to have fixed it though. – (/users/419075/amir-raminfar) (34,179 reputation) Amir Raminfar Commented (2021-05-25 02:04:31Z, License: CC BY-SA 4.0) May 25, 2021 at 2:04 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:ba789b5e8edf1218,10:1742104970,16:3f5362543efe711a,8:49395708,09b096671081e1d444d126e8b09e3df3881e6b2411e16d51308559ce00326e27) 4 (This answer is not useful) (70:3:31e,16:fbb2fe17858fceb5,10:1742104970,16:c2a280efc81b2a76,8:49395708,abea0c7a73590e0d9c3c052376e5171f0561ccb7a70ef84ef2433a2ef6234781) Save this answer. (Loading when this answer was accepted…) (/posts/49395708/timeline) Show activity on this post. This may be the old one, but fixed available here (https://success.docker.com/article/i-get-x509-certificate-signed-by-unknown-authority-error-when-i-try-to-login-to-my-dtr-with-default-certificates) https://success.docker.com/article/i-get-x509-certificate-signed-by-unknown-authority-error-when-i-try-to-login-to-my-dtr-with-default-certificates run following commands on each server export DOMAIN_NAME=bootstrap.node1.local export TCP_PORT=5000 openssl s_client -connect $DOMAIN_NAME :$TCP_PORT -showcerts /dev/null | openssl x509 -outform PEM | tee /etc/pki/ca-trust/source/anchors/$DOMAIN_NAME .crt update-ca-trust /bin/systemctl restart docker.service (/a/49395708) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/49395708/edit) () Improve this answer Follow (70:3:31e,16:049d8b658d18d4ba,10:1742104970,16:b26b14f7e5a632c2,8:49395708,7eff25388f96305802ffaa47c535258dd746a947aa659c980e162d01f91792f1) Follow this answer to receive notifications (/posts/49395708/revisions) (show all edits to this post) edited (2020-05-24 22:18:10Z) May 24, 2020 at 22:18 (/users/6359/david-lay) (David Lay's user avatar) (/users/6359/david-lay) David Lay (reputation score) 2,955 (4 gold badges) 4 4 gold badges (27 silver badges) 27 27 silver badges (48 bronze badges) 48 48 bronze badges answered (2018-03-20 23:21:15Z) Mar 20, 2018 at 23:21 (/users/3170525/saleem-shar) (Saleem Shar's user avatar) (/users/3170525/saleem-shar) Saleem Shar Saleem Shar (reputation score) 64 (2 bronze badges) 2 2 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:dd499b6d06b9d394,10:1742104970,16:f414b0a0b393f98a,8:69831146,0219950395b76e3a1d0215ef6f047901c1a0ccda93fd5eb12e2787c84c445e6e) 3 (This answer is not useful) (70:3:31e,16:e2c19c46e710b4ba,10:1742104970,16:5b7b7fc2588ae9c8,8:69831146,5ff35d2aae40c13b6e1028405c78820ce125d000feb8e1c22620d89fb4e2f149) Save this answer. (Loading when this answer was accepted…) (/posts/69831146/timeline) Show activity on this post. I also had problems with pull requests timing out. with both docker pull hello-world kubeadm config images pull Perhaps this problem started for me when upgrading the VM from ubuntu 18 to 20, but there were also many kubernetes related config changes I made, so not sure. anyway this solution resolved it for me. (https://stackoverflow.com/a/51648635/11416610) https://stackoverflow.com/a/51648635/11416610 thanks (https://stackoverflow.com/users/10166950/nils) @nils ! incase the above link brakes, here is a quote: I had the same issue yesterday. Since I am behind a company proxy, I had to define the http-proxy for the docker daemon in: /etc/systemd/system/docker.service.d/http-proxy.conf The problem was, that I misconfigured the https_proxy, how it is described here. I used https :// in the https_proxy environment variable, which caused this error. This configuration works for me: cat /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment=http_proxy=http://IP:PORT/ Environment=no_proxy=localhost,127.0.0.1 Environment=https_proxy=http://IP:PORT/ Remember that you have to restart the docker daemon after changing this configuration. You can achieve this by using: systemctl daemon-reload systemctl restart docker (/a/69831146) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69831146/edit) () Improve this answer Follow (70:3:31e,16:3aaf13d74c913d96,10:1742104970,16:e48f506f3c0a73f7,8:69831146,e6b6e60f22c5b4136d48c2822c207a686008ddb63da17b2644894a79b4cde9b2) Follow this answer to receive notifications answered (2021-11-03 20:09:10Z) Nov 3, 2021 at 20:09 (/users/11416610/brian-davis) (Brian Davis's user avatar) (/users/11416610/brian-davis) Brian Davis Brian Davis (reputation score) 73 (6 bronze badges) 6 6 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:9c0b059e93bc788e,10:1742104970,16:9034a3deba26f654,8:74133662,b4c459630764c238ce3206827b9e7d4814c78c13a6cfcd56da788efabb93d7f4) 3 (This answer is not useful) (70:3:31e,16:cf0f4dea97d6d22a,10:1742104970,16:56643b0b63fcfc6d,8:74133662,72af89c2b79e9bda0293dd3a1e5ed5789ece89b2cd14d04c64ab4418997580a1) Save this answer. (Loading when this answer was accepted…) (/posts/74133662/timeline) Show activity on this post. I was getting the same error. I am using a ubuntu 20.04 system Error response from daemon: Get "https://registry-1.docker.io/v2/" : net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) I added the missing lines inside /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4 sudo nano /etc/resolv.conf This is how it looks now. nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 127.0.0.53 options edns0 trust-ad (/a/74133662) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/74133662/edit) () Improve this answer Follow (70:3:31e,16:91ea48d44f399426,10:1742104970,16:161a77daf3ca8e81,8:74133662,12c07397c638b1e9fcd7a41bf5d1ecd42363f16d9b6e6dc3323a426aadb93dde) Follow this answer to receive notifications answered (2022-10-20 02:00:15Z) Oct 20, 2022 at 2:00 (/users/9304534/nitin-raturi) (Nitin Raturi's user avatar) (/users/9304534/nitin-raturi) Nitin Raturi Nitin Raturi (reputation score) 1,835 (1 gold badge) 1 1 gold badge (10 silver badges) 10 10 silver badges (12 bronze badges) 12 12 bronze badges 1 (number of 'useful comment' votes received) 1 Thank you! On same OS, tried a bunch of other proposed solutions but this was the one that worked for me. – (/users/1922095/brian-z) (953 reputation) Brian Z Commented (2022-10-30 18:23:12Z, License: CC BY-SA 4.0) Oct 30, 2022 at 18:23 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:22f252949a081910,10:1742104970,16:9becea697f05369d,8:58735946,3a30869e55ba243121a84c7c99a42cbe85fd95aba2df60e9c79adf267b6f4eae) 2 (This answer is not useful) (70:3:31e,16:37fb6abd4e8b12f4,10:1742104970,16:be122516b1aa75bc,8:58735946,361d74d090b9b5374abd91a4b5dd32c8be7bbf9bc99b420568efa88a9ec35539) Save this answer. (Loading when this answer was accepted…) (/posts/58735946/timeline) Show activity on this post. I have same issue with registry deployed in swarm. Restart docker helps but after some time it occurs again. Redeploy registry with docker-compose sudo docker-compose up -d and all works fine (/a/58735946) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/58735946/edit) () Improve this answer Follow (70:3:31e,16:2e28a562e1342972,10:1742104970,16:dfc3d4cacd523b3d,8:58735946,fb4218a19df93645347c6645de2ff22730990c891155aa8da3255778cd436386) Follow this answer to receive notifications answered (2019-11-06 17:53:28Z) Nov 6, 2019 at 17:53 (/users/6515755/ryabchenko-alexander) (Ryabchenko Alexander's user avatar) (/users/6515755/ryabchenko-alexander) Ryabchenko Alexander Ryabchenko Alexander (reputation score 12,470) 12.5k (9 gold badges) 9 9 gold badges (72 silver badges) 72 72 silver badges (104 bronze badges) 104 104 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:3b11d83fb652f0ba,10:1742104970,16:fa6407aa0a859620,8:69064690,af2800ba95e02e701f5ee3ea995e2996c39da103bd26730305d5f1785413872f) 2 (This answer is not useful) (70:3:31e,16:543f91065d3c01c7,10:1742104970,16:0a5c798081b5547e,8:69064690,539a0c8d642184cd15254b4c559f51764f5e1c662c616238387ac050af0416bc) Save this answer. (Loading when this answer was accepted…) (/posts/69064690/timeline) Show activity on this post. Windows 10 - home PC. none of the solution worked for me. what worked is un-install docker, restart PC, "run as administrator" while installing exe. worked!! (/a/69064690) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69064690/edit) () Improve this answer Follow (70:3:31e,16:2f155c6c4dd99236,10:1742104970,16:fe369d240c5598ab,8:69064690,132787bb1b42f2ba3aecea2644b87bbe181a194664003f1433066aa2b45bf350) Follow this answer to receive notifications answered (2021-09-05 15:19:35Z) Sep 5, 2021 at 15:19 (/users/14168116/selva) (selva's user avatar) (/users/14168116/selva) selva selva (reputation score) 71 (1 silver badge) 1 1 silver badge (3 bronze badges) 3 3 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:647766cc716b1047,10:1742104970,16:fa571b5d2ddb1052,8:77130871,249296c3f6c7aaad778ac8a3d092b78ba2d7b050be5d5ba2f851597073756da1) 2 (This answer is not useful) (70:3:31e,16:40a795e5bfbea3fb,10:1742104970,16:b7a7e24e282e1e49,8:77130871,e9d9f8bf55ae49cd3a0a3e16733913edc93c2a51c6ace94c6264eebda5fdfdad) Save this answer. (Loading when this answer was accepted…) (/posts/77130871/timeline) Show activity on this post. Ok, so issue is likely you are using a Proxy! This answer applies to Linux only.. You'll need to configure the proxy in two places. One is for pulling docker images and the other resolves network access from inside containers. Use below script, adjust ActiveProxyVar and corpdom and save script and run! #!/bin/bash #Proxy #Note: Doesn't always require user:pwd, can just be IP at bare minimum ActiveProxyVar=user:pwd@IP:PORT #Domain corpdom=domain.org #NoProxy NOT_PROXY=127.0.0.0/8,172.16.0.0/12,192.168.0.0/16,10.0.0.0/8,.$corpdom httpproxyvar=http://$ActiveProxyVar/ httpsproxyvar=http://$ActiveProxyVar/ mkdir ~/.docker cat << EOL >~/.docker/config.json { "proxies": { "default": { "httpProxy": "$httpproxyvar", "httpsProxy": "$httpsproxyvar", "noProxy": "$NOT_PROXY" } } } EOL mkdir -p /etc/systemd/system/docker.service.d cat << EOL >/etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=$httpproxyvar" Environment="HTTPS_PROXY=$httpsproxyvar" Environment="NO_PROXY=$NOT_PROXY" Environment="http_proxy=$httpproxyvar" Environment="https_proy=$httpsproxyvar" Environment="no_proxy=$NOT_PROXY" EOL systemctl daemon-reload systemctl restart docker systemctl show --property Environment docker docker run hello-world (/a/77130871) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/77130871/edit) () Improve this answer Follow (70:3:31e,16:cf6f3acc406215ff,10:1742104970,16:472a6434cf750ed8,8:77130871,3ac15d5b8ce7ac550decf5d53eea2d5fd36bcdb254290304910f57ea9e6ac8a1) Follow this answer to receive notifications answered (2023-09-18 23:21:39Z) Sep 18, 2023 at 23:21 (/users/5079799/freesoftwareservers) (FreeSoftwareServers's user avatar) (/users/5079799/freesoftwareservers) FreeSoftwareServers FreeSoftwareServers (reputation score) 2,831 (6 gold badges) 6 6 gold badges (40 silver badges) 40 40 silver badges (72 bronze badges) 72 72 bronze badges 1 (number of 'useful comment' votes received) 1 THANK YOU. This was the only one that worked for me! – (/users/18020911/turq6ise) (143 reputation) Turq6ise Commented (2025-01-14 07:10:49Z, License: CC BY-SA 4.0) Jan 14 at 7:10 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:dbe2b5eb3fa472d4,10:1742104970,16:8614eb88f44abf98,8:62928284,f093d5dc5bb8b8410ea2da947f39cbabb2664e8bdecab75c284bc1c0a216e339) 1 (This answer is not useful) (70:3:31e,16:6f140006068ea1f7,10:1742104970,16:b776050afea0324e,8:62928284,ce8ccefc79f80d106562720ab49d87e5eb62997df443629336a144cd6a78ae91) Save this answer. (Loading when this answer was accepted…) (/posts/62928284/timeline) Show activity on this post. I faced this issue on ubuntu when I am trying to build elasticsearch : And I got this error: ERROR: Get https://docker.elastic.co/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) It was my network connection problem. I was using VPN. so I disconnect my VPN connection and it's working fine. for some reasons, it's trying to look up the domain it seems trying to search for the domain inside the local network after I disconnect the VPN everything worked fine. (/a/62928284) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/62928284/edit) () Improve this answer Follow (70:3:31e,16:940c39a539ca0521,10:1742104970,16:e9f237cdc999ac3a,8:62928284,32666decfbeab5522e483c17f237a4bbc03cad9e05b2862d265a7e934abd73b8) Follow this answer to receive notifications answered (2020-07-16 05:47:50Z) Jul 16, 2020 at 5:47 (/users/5939757/sayem) (Sayem's user avatar) (/users/5939757/sayem) Sayem Sayem (reputation score) 104 (11 bronze badges) 11 11 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:e6b119812eef1dd8,10:1742104970,16:1d11509583089037,8:72764592,e7289331333fb1feb2696252b219565527e4a7f10ccfc4bb1e66482cd8a512f4) 1 (This answer is not useful) (70:3:31e,16:047a8034d7262b8a,10:1742104970,16:532ac6bdf629d027,8:72764592,70499a2f6ef4e3fd3ae3eeedf6e28ba5c9a89a89a1d64a311428e03ef7e75fb6) Save this answer. (Loading when this answer was accepted…) (/posts/72764592/timeline) Show activity on this post. my solution was : docker image prune and docker volume prune (/a/72764592) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/72764592/edit) () Improve this answer Follow (70:3:31e,16:42f21ccd6bcfa5bf,10:1742104970,16:f77669fe2559c28d,8:72764592,bd725f655ed2fd7cff61d1b4ce0778101dd0652baeb0ceecbd979ecd65551e5c) Follow this answer to receive notifications answered (2022-06-26 19:32:07Z) Jun 26, 2022 at 19:32 (/users/5146198/reinah) (reinaH's user avatar) (/users/5146198/reinah) reinaH reinaH (reputation score) 553 (6 silver badges) 6 6 silver badges (10 bronze badges) 10 10 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:7fb69a75c7c30e4b,10:1742104970,16:07efa1141c6beffd,8:57173194,2add86ad15a5c736ba96b18c18349c0a314a1ace548e3ad223bf0b6bff0f5425) 0 (This answer is not useful) (70:3:31e,16:39983cd3232d372d,10:1742104970,16:934ee7263a18c4b8,8:57173194,58c6dd46703b0baf50b2c207658be527e4df87a9a3047f08c75876deada0336c) Save this answer. (Loading when this answer was accepted…) (/posts/57173194/timeline) Show activity on this post. For my case, my company needed to define my IP in the White list in order to access the cloud.docker files. So do not hesitate to tell the responsible person if you have such error. (/a/57173194) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/57173194/edit) () Improve this answer Follow (70:3:31e,16:64bf9f4313a93190,10:1742104970,16:c7a208da873686d3,8:57173194,3783a0577468a888f4d228f6fe5535facc97d0dd675b51908e6c744a0ff3aa8d) Follow this answer to receive notifications answered (2019-07-23 22:57:11Z) Jul 23, 2019 at 22:57 (/users/6765818/yasi-klingler) (Yasi Klingler's user avatar) (/users/6765818/yasi-klingler) Yasi Klingler Yasi Klingler (reputation score) 636 (7 silver badges) 7 7 silver badges (13 bronze badges) 13 13 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:88e40687f809626f,10:1742104970,16:cc5c950bc11dab6b,8:68185679,28768b0f460c66778660b4b613c347a36353a96029386a346a966097b73a4634) 0 (This answer is not useful) (70:3:31e,16:7cfb40d8e6e58b21,10:1742104970,16:98d34c93a975e26b,8:68185679,e5be8ad406f95299bcae3ae878b392d50398d694d382836baf0aff216808442c) Save this answer. (Loading when this answer was accepted…) (/posts/68185679/timeline) Show activity on this post. My issue was with Windows WSL, not only do you have to set the static dns servers as mentioned above in both the Docker Desktop client, and your containers, but you also need to add [network] generateResolvConf = false to the /etc/wsl.conf in your linux containers. You will need to reboot your container as outlined in (https://superuser.com/questions/1126721/rebooting-ubuntu-on-windows-without-rebooting-windows) https://superuser.com/questions/1126721/rebooting-ubuntu-on-windows-without-rebooting-windows , or you can reboot your pc. (/a/68185679) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/68185679/edit) () Improve this answer Follow (70:3:31e,16:17cefe2912318b29,10:1742104970,16:7f8f0ea6ba818e28,8:68185679,ee430930850c278fba54bfacf97c6c8c68d14324916d57de0c556d4609eb3a03) Follow this answer to receive notifications answered (2021-06-29 21:10:15Z) Jun 29, 2021 at 21:10 (/users/1117029/r2doesinc) (r2DoesInc's user avatar) (/users/1117029/r2doesinc) r2DoesInc r2DoesInc (reputation score) 3,771 (3 gold badges) 3 3 gold badges (32 silver badges) 32 32 silver badges (60 bronze badges) 60 60 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:8b6ad4d90e6241c9,10:1742104970,16:9ba877b774f832ae,8:69453570,978f3e0178084d52555ffec21603033f8c62c08e484806368e84ef849f79e178) 0 (This answer is not useful) (70:3:31e,16:3835ef865e92cef8,10:1742104970,16:6cc2671a5234446f,8:69453570,e769ad77ad355143b653968949010c88eda93162e4bb2b2bc209adb779ac8495) Save this answer. (Loading when this answer was accepted…) (/posts/69453570/timeline) Show activity on this post. None of those solutions worked for me. I finally make it work simply by doing an update of docker. (MAC OS) (/a/69453570) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69453570/edit) () Improve this answer Follow (70:3:31e,16:c0a431d581913e77,10:1742104970,16:5a4a557883fdd7ee,8:69453570,70ac3260199364f70753d98a44b0ea984b67d39d24935519d22533e59f2b5dfb) Follow this answer to receive notifications answered (2021-10-05 15:47:14Z) Oct 5, 2021 at 15:47 (/users/2355088/romain-taillandier) (Romain TAILLANDIER's user avatar) (/users/2355088/romain-taillandier) Romain TAILLANDIER Romain TAILLANDIER (reputation score) 2,015 (15 silver badges) 15 15 silver badges (22 bronze badges) 22 22 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:4014cb5f3afc8030,10:1742104970,16:c634402c3350bcb5,8:69559384,8e4dedf1ac016bc8a85c515f72fadc87a4957db270e12e513fe04d88baf5c335) 0 (This answer is not useful) (70:3:31e,16:94835db373a42380,10:1742104970,16:0dffa781f0e09f16,8:69559384,1e72273794feeb07edd22c2fd7e04567c6f9372ec651ebbbd60afc74dd00d39a) Save this answer. (Loading when this answer was accepted…) (/posts/69559384/timeline) Show activity on this post. I experienced this issue when trying to push to Docker. I updated Docker Desktop (via the GUI) I also ran docker system prune which prompts: WARNING! This will remove: - all stopped containers - all volumes not used by at least one container - all networks not used by at least one container - all dangling images Confirm this by entering yes (/a/69559384) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69559384/edit) () Improve this answer Follow (70:3:31e,16:a0ff0090a8690125,10:1742104970,16:a44c293a41790bba,8:69559384,e0dfe3495552376ffb536e54c5a5801e7fc09538f5f58f5c3317d4d46d2118c0) Follow this answer to receive notifications answered (2021-10-13 16:52:09Z) Oct 13, 2021 at 16:52 (/users/11345276/harry-riley) (Harry Riley's user avatar) (/users/11345276/harry-riley) Harry Riley Harry Riley (reputation score) 333 (3 silver badges) 3 3 silver badges (10 bronze badges) 10 10 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:e0b6993c2e6b01fd,10:1742104970,16:d67323f8633345ff,8:70628264,f9b4ac39848ca7d9420809f9735c80a3564297fd85f113a5c3f28930c92cd2f2) 0 (This answer is not useful) (70:3:31e,16:cafa75e421ecf4fe,10:1742104970,16:80bece7554780546,8:70628264,07e1933033e55bfe80db53cc13f20a702e5bb1cd8b8c9ee7a6cee2ac5dee1526) Save this answer. (Loading when this answer was accepted…) (/posts/70628264/timeline) Show activity on this post. It could be temporary network issue. I had same issue. I would these two Re-run the command again Restart the Docker Desktop (/a/70628264) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/70628264/edit) () Improve this answer Follow (70:3:31e,16:f1cd3144a35ec21b,10:1742104970,16:7696baa20960436d,8:70628264,c53a6edbe1f6b7df2aab934b39e792e8543248552f6d882a2782763fd6cb533f) Follow this answer to receive notifications answered (2022-01-07 23:27:21Z) Jan 7, 2022 at 23:27 (/users/12684312/phani-kiran-mullapudi) (Phani Kiran Mullapudi's user avatar) (/users/12684312/phani-kiran-mullapudi) Phani Kiran Mullapudi Phani Kiran Mullapudi (reputation score) 190 (1 silver badge) 1 1 silver badge (5 bronze badges) 5 5 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:058ab38574b01d35,10:1742104970,16:5efe356f40878c7f,8:70764367,4d204b54b485b59f4f1e42c977d5806492f036fc4cea128b53eddb59cca6031f) 0 (This answer is not useful) (70:3:31e,16:f399164426e3cfd0,10:1742104970,16:806fdf5493b88ac2,8:70764367,3314c67933503215916698bf0609828f6b2dce34ab76c502cb12ac279a3935fa) Save this answer. (Loading when this answer was accepted…) (/posts/70764367/timeline) Show activity on this post. I had the same issue. I was getting this error while following the (https://www.udemy.com/) Udemy course. Since I was new to Docker I was actually building image by giving incorrect repository name( I was using Instructor username instead of mine docker repository username). When we push the image to Docker hub, use your docker repository name. Hence build image using your username. docker build . -t docker_username/example:latest where . represent current directory where your Dockerfile resides. Please first logged in your (https://hub.docker.com/repositories) docker repository by using Docker desktop in your system Hope this will solve someone's problem. (/a/70764367) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/70764367/edit) () Improve this answer Follow (70:3:31e,16:6c8eee309b446543,10:1742104970,16:18f67e0aaa9539ff,8:70764367,feb254725972f3e5eaf85c23112749fe47d52c156ea5a11a275d9f86d602e898) Follow this answer to receive notifications answered (2022-01-19 01:35:26Z) Jan 19, 2022 at 1:35 (/users/4593164/akii) (Akii's user avatar) (/users/4593164/akii) Akii Akii (reputation score) 11 (2 bronze badges) 2 2 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:3df8fd1270b0497d,10:1742104970,16:8cff47a09d065faf,8:73147910,2080e16bcba7794a485d966e25f6309cd6dd9f97af5625fa60f1f809db7e79d6) 0 (This answer is not useful) (70:3:31e,16:8d2c786a74536f4c,10:1742104970,16:b806d8562c44ee73,8:73147910,73df64a66917e2e7dc5db138b117c67ed4adc8440dba1c4b52e21c88e1d51213) Save this answer. (Loading when this answer was accepted…) (/posts/73147910/timeline) Show activity on this post. I was stuck too, tried everything I could then I tried these: (https://fedingo.com/how-to-uninstall-docker-in-ubuntu/) https://fedingo.com/how-to-uninstall-docker-in-ubuntu/ Make sure you repeat step 1 and 2 mentioned in link untill step 1 shows nothing then procceed with step 3 and the next steps then delete docker folder from here /etc/systemd/system/docker.service.d/ then follow : (https://docs.docker.com/engine/install/ubuntu/) https://docs.docker.com/engine/install/ubuntu/ (/a/73147910) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/73147910/edit) () Improve this answer Follow (70:3:31e,16:03db5b14b9b16869,10:1742104970,16:53fb5932e45c5c7a,8:73147910,44a19a7c62e48cb40235b707dbafadb8984850e442248eeecc306d8802aed574) Follow this answer to receive notifications answered (2022-07-28 05:58:50Z) Jul 28, 2022 at 5:58 (/users/14958138/satnam) (Satnam's user avatar) (/users/14958138/satnam) Satnam Satnam (reputation score) 11 (1 bronze badge) 1 1 bronze badge (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:f0caa85394b83eb8,10:1742104970,16:d76e24ce001d102d,8:79136005,138dfdcd47c63d065fb961b239c1f3275dcc83a4034398f2238ad3db3f7bdcb4) 0 (This answer is not useful) (70:3:31e,16:072702434066ae39,10:1742104970,16:17376ae0c2ee8d0b,8:79136005,e7e9ed25df907abedf480c76477e59f3e96e558c6914a95796a6357755083a6b) Save this answer. (Loading when this answer was accepted…) (/posts/79136005/timeline) Show activity on this post. If you are using Ubuntu, try to start with 'sudo ' like pull something: sudo docker pull hello-world sudo docker pull... like build something: sudo docker-compose -f xxxx.yaml sudo docker-compose ... (/a/79136005) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/79136005/edit) () Improve this answer Follow (70:3:31e,16:79f5dab6ca5bd098,10:1742104970,16:eba98a5079e479f5,8:79136005,e272d343e898be33d668ec830380c44afe57bab63cbb1e1dae9ef4c7bd1fa037) Follow this answer to receive notifications answered (2024-10-29 06:11:14Z) Oct 29, 2024 at 6:11 (/users/21958037/tamding-dojee) (tamding dojee's user avatar) (/users/21958037/tamding-dojee) tamding dojee tamding dojee (reputation score) 41 (4 bronze badges) 4 4 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:bcec4c61c2c922d3,10:1742104970,16:ff0e2dd5c210dd05,8:79510459,b1f50ed2d7ab035af567e611e0ba37dca2fe70f391a34a820f17e210a428445c) 0 (This answer is not useful) (70:3:31e,16:428401624468da5a,10:1742104970,16:a3b0fa09a83f89a6,8:79510459,4929e1435e2122737f8e7de7866122fdf1f03779facb0bfbf21a964a5bd4b31a) Save this answer. (Loading when this answer was accepted…) (/posts/79510459/timeline) Show activity on this post. If you're running docker on an EC2 instance, and you face this issue, one of the things you need to check is your outbound rules on your security group. You'll need add a rule that allows all traffic, and destination should be "Anywhere-IPv4". Save the rule and run your command again. (/a/79510459) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/79510459/edit) () Improve this answer Follow (70:3:31e,16:c4ee925d544d2a07,10:1742104970,16:cee9eaa983b6e96a,8:79510459,4cb0cbe4e0f1a606c3d4481a82f2a3017a65ff3477f07b389e1da282b5c9302d) Follow this answer to receive notifications answered (2025-03-15 00:28:03Z) yesterday (/users/5804417/simbarashe-mupfururirwa) (Simbarashe Mupfururirwa's user avatar) (/users/5804417/simbarashe-mupfururirwa) Simbarashe Mupfururirwa Simbarashe Mupfururirwa (reputation score) 375 (2 silver badges) 2 2 silver badges (14 bronze badges) 14 14 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:26ffce37528b5ba1,10:1742104970,16:56089ba6bc865e50,8:61383511,0c2a65c4acffd2fdd55546586b79f339e2bac575c28f0d3268b0f8b909375bbd) -1 (This answer is not useful) (70:3:31e,16:505c1ed8cb7991bf,10:1742104970,16:3c3283305802d327,8:61383511,9d6094b096b059e9c89ab399114ba5a1c598385034024b5d3a3873dbc9d13f52) Save this answer. (Loading when this answer was accepted…) (/posts/61383511/timeline) Show activity on this post. I have faced this error sometimes, my docker image is built smoothly before but when I have to remove all images ( even I do not make any change with the docker configuration files or any error in code). this still happens. so I think that it may cause by the connection for it does a "Get (https://registry-1.docker.io/v2/) https://registry-1.docker.io/v2/ :....." I have change DNS to google DNS 8.8.8.8 and 8.8.4.4 then it 's worked. good luck! (/a/61383511) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/61383511/edit) () Improve this answer Follow (70:3:31e,16:153f41c734957da9,10:1742104970,16:4db57fc7019f1150,8:61383511,ba3810246353cd7c2b2976ce09e4b6ae11526a8a67d420a5d7e523aaee8286dd) Follow this answer to receive notifications answered (2020-04-23 09:13:36Z) Apr 23, 2020 at 9:13 (/users/12347949/joe-khoa) (joe-khoa's user avatar) (/users/12347949/joe-khoa) joe-khoa joe-khoa (reputation score) 610 (1 gold badge) 1 1 gold badge (6 silver badges) 6 6 silver badges (10 bronze badges) 10 10 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:148aff2fe06c650e,10:1742104970,16:d4e4ea505fb82556,8:66176514,5c100df4cd227cd3a2b2901459ffd42a0871ce3956eaddb91dc55d0dcdb38150) -1 (This answer is not useful) (70:3:31e,16:24a1172b85840d36,10:1742104970,16:1f5c0bdecbff2975,8:66176514,34845d40314edb3d0e2f30bdfbb1e39db05826f20967bb3709e4368bc392ad42) Save this answer. (Loading when this answer was accepted…) (/posts/66176514/timeline) Show activity on this post. I got this error from my own Internet connection. Switched to another provider, all good. (/a/66176514) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/66176514/edit) () Improve this answer Follow (70:3:31e,16:6813ce55ff91cff9,10:1742104970,16:44dd6df3b7b65b5f,8:66176514,49a1e13474443148fdad87b9334949ae8f764e1f05e48199cae575da0bbee346) Follow this answer to receive notifications answered (2021-02-12 17:37:50Z) Feb 12, 2021 at 17:37 (/users/2251840/smallchess) (SmallChess's user avatar) (/users/2251840/smallchess) SmallChess SmallChess (reputation score) 8,166 (9 gold badges) 9 9 gold badges (56 silver badges) 56 56 silver badges (95 bronze badges) 95 95 bronze badges 0 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:a8f526fb67694a4a,10:1742104970,16:66b47d87e24b8876,8:71315890,867fad95766890601605a129b0e44484b12cd2b805f627bcf68b0f53b3025a6a) -1 (This answer is not useful) (70:3:31e,16:ffec4d3ccb094e17,10:1742104970,16:d7b11326275d129c,8:71315890,ff0cbe9cd7c3de2eb1bdbd46597b0ab94ade90f66672a36db94fd6dbdc65819f) Save this answer. (Loading when this answer was accepted…) (/posts/71315890/timeline) Show activity on this post. Just add at the end of your shell command --dns 8.8.8.8 (/a/71315890) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/71315890/edit) () Improve this answer Follow (70:3:31e,16:c3938ba9a9024dc2,10:1742104970,16:0104b6f94784ad40,8:71315890,e34c5b82726e70244dfabc47e1db1788d6d880a7b052f389059a65ab4365d890) Follow this answer to receive notifications answered (2022-03-01 23:46:54Z) Mar 1, 2022 at 23:46 (/users/2366480/max-chernopolsky) (Max Chernopolsky's user avatar) (/users/2366480/max-chernopolsky) Max Chernopolsky Max Chernopolsky (reputation score) 627 (7 silver badges) 7 7 silver badges (17 bronze badges) 17 17 bronze badges 2 (number of 'useful comment' votes received) 1 It gives unknown flag error – (/users/8496502/deekshith-anand) (2,702 reputation) Deekshith Anand Commented (2022-05-17 11:23:49Z, License: CC BY-SA 4.0) May 17, 2022 at 11:23 @DeekshithAnand the flag does exist. If you execute docker run --help you will see the following messge: --dns list Set custom DNS servers , therefore it does exist – (/users/1615183/hola-soy-edu-feliz-navidad) (7,092 reputation) Hola Soy Edu Feliz Navidad Commented (2023-06-07 08:39:21Z, License: CC BY-SA 4.0) Jun 7, 2023 at 8:39 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:9f5663fc523ef02d,10:1742104970,16:85271f0f301bf207,8:72840734,61d23cb19a5803acfc4e77b7523419490d71e847c1c549357a38c76b98845e9a) -1 (This answer is not useful) (70:3:31e,16:baecb79cdec64770,10:1742104970,16:9446730e153d32d9,8:72840734,ced978cd962b5817206522c895a06debf574ba4d534b2e42bcc5344da6817abd) Save this answer. (Loading when this answer was accepted…) (/posts/72840734/timeline) Show activity on this post. Experienced this Error while I was trying to : docker pull odoo and my solution was: sudo systemctl restart docker (/a/72840734) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/72840734/edit) () Improve this answer Follow (70:3:31e,16:2b8b098b4402f71c,10:1742104970,16:29966716883193f4,8:72840734,1a066f980e649873a6448703ae3f08e544b3b4935c4f1011f1d3f6e8b0390f2d) Follow this answer to receive notifications answered (2022-07-02 16:35:38Z) Jul 2, 2022 at 16:35 (/users/17815679/shyakadev) (shyakadev's user avatar) (/users/17815679/shyakadev) shyakadev shyakadev (reputation score) 49 (5 bronze badges) 5 5 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:044268a09f874570,10:1742104970,16:f44e00307ff50cb2,8:72985716,7b701b7541bc43efe955545b3b65a647146f50f3b4e1ba3df533a57d15a35235) -1 (This answer is not useful) (70:3:31e,16:7c9d0040c539412f,10:1742104970,16:d4b44ee0c8ce4a95,8:72985716,ec723aea8842ebc0bedad9771d7c985b5a42a475787207f72699f45fe699eb72) Save this answer. (Loading when this answer was accepted…) (/posts/72985716/timeline) Show activity on this post. Just log in through the terminal and use the below command docker login Enter username and password (/a/72985716) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/72985716/edit) () Improve this answer Follow (70:3:31e,16:4e21921cee14bc81,10:1742104970,16:011b413bef0f176a,8:72985716,c525af6d6616f19c80099a962cb8b2bfb2cabc82cf7ea684d433032e6851b143) Follow this answer to receive notifications answered (2022-07-14 19:27:44Z) Jul 14, 2022 at 19:27 (/users/10218014/amit-kumar) (Amit Kumar's user avatar) (/users/10218014/amit-kumar) Amit Kumar Amit Kumar (reputation score) 1,839 (16 silver badges) 16 16 silver badges (11 bronze badges) 11 11 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) 1 (/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b?page=2&tab=scoredesc#tab-top) (Go to page 2) 2 (/questions/48056365/error-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b?page=2&tab=scoredesc#tab-top) (Go to page 2) Next (48056365) (false) () Your Answer (True) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48056365%2ferror-get-https-registry-1-docker-io-v2-net-http-request-canceled-while-b%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Answer This Question Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-image) (show questions tagged 'docker-image') docker-image See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/03/14/can-climate-tech-startups-address-the-current-crisis/?cb=1) Can climate tech startups address the current crisis? (https://stackoverflow.blog/2025/03/14/what-we-learned-at-tdx-2025/?cb=1) What we learned at TDX 2025 Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407321/community-asks-sprint-announcement-march-2025?cb=1) Community Asks Sprint Announcement - March 2025 (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407425/meta-stack-exchange-site-maintenance-scheduled-starting-monday-march-17-2025-f?cb=1) (Meta Stack Exchange site maintenance scheduled starting Monday, March 17, 2025 from 13:30 UTC to 14:30 UTC (9:30am to 10:30am ET)) Meta Stack Exchange site maintenance scheduled starting Monday, March 17,... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/432989/is-it-better-to-redirect-users-who-attempt-to-perform-actions-they-cant-yet-tak?cb=1) (Is it better to redirect users who attempt to perform actions they can't yet take?) Is it better to redirect users who attempt to perform actions they can't yet... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing Linked (https://stackoverflow.com/q/51571686?lq=1) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/51571686/ubuntu-18-04-error-response-from-daemon-get-https-registry-1-docker-io-v2?noredirect=1&lq=1) Ubuntu 18.04 - Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: tls: oversized record received with length 20527 (https://stackoverflow.com/q/62382321?lq=1) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/62382321/gke-image-pull-errors-for-specific-public-docker-hub-images?noredirect=1&lq=1) GKE Image pull errors for specific public docker hub images (https://stackoverflow.com/q/65232826?lq=1) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/65232826/imagepullbackoff-error-from-mongo-kubernetes?noredirect=1&lq=1) ImagePullBackOff Error from mongo (Kubernetes) (https://stackoverflow.com/q/73739476?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/73739476/unable-to-install-nginx-proxy-manager-using-portainer-on-synology?noredirect=1&lq=1) Unable to install Nginx Proxy Manager using Portainer on Synology (https://stackoverflow.com/q/73482273?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/73482273/error-response-from-daemonproxyconnect-tcp-dial-tcp-lookup-proxy-example-co?noredirect=1&lq=1) "Error response from daemon:proxyconnect tcp: dial tcp: lookup {proxy.example.com}: no such host". what should be placed instead of proxy.example.com? (https://stackoverflow.com/q/66470177?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/66470177/docker-is-unable-to-pull-the-base-image-get-https-registry-1-docker-io-v2?noredirect=1&lq=1) docker is unable to pull the base image | Get https://registry-1.docker.io/v2/: (https://stackoverflow.com/q/66227874?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/66227874/docker-installation-problem-with-windows-10-home-wsl?noredirect=1&lq=1) docker installation problem with windows 10 home + wsl (https://stackoverflow.com/q/59958224?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/59958224/how-to-change-dns-with-docker-toolbox-for-windows-10-home-version?noredirect=1&lq=1) How to change DNS with Docker Toolbox for Windows 10 Home version Related (https://stackoverflow.com/q/51881286?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/51881286/fail-to-run-docker-while-building-an-image?rq=3) Fail to run docker while building an image (https://stackoverflow.com/q/52252791?rq=3) (Question score (upvotes - downvotes)) 34 (https://stackoverflow.com/questions/52252791/error-get-https-registry-1-docker-io-v2-net-http-tls-handshake-timeout-in?rq=3) ERROR: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout in Docker (https://stackoverflow.com/q/60766682?rq=3) (Question score (upvotes - downvotes)) 17 (https://stackoverflow.com/questions/60766682/docker-error-response-from-daemon-get-https-registry-1-docker-io-v2-net-ht?rq=3) Docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (https://stackoverflow.com/q/61275816?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/61275816/bad-request-400-message-every-time-i-try-to-build-my-docker-ubuntu-1604-image?rq=3) Bad Request (400) message every time I try to build my Docker Ubuntu 16:04 image (https://stackoverflow.com/q/62726615?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/62726615/docker-build-error-https-registry-1-docker-io-v2-x509-certificate-is-valid?rq=3) Docker Build Error https://registry-1.docker.io/v2/: x509: certificate is valid (https://stackoverflow.com/q/65069983?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/65069983/dockerfile-build-image-fail?rq=3) Dockerfile build image fail (https://stackoverflow.com/q/65601592?rq=3) (Question score (upvotes - downvotes)) 51 (https://stackoverflow.com/questions/65601592/building-docker-image-fails-with-failed-to-fetch-anonymous-token-tls-handshake?rq=3) Building docker image fails with failed to fetch anonymous token, TLS handshake timeout (https://stackoverflow.com/q/71640505?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/71640505/docker-error-response-from-daemon-get-https-registry-1-docker-io-v2-eof?rq=3) Docker: Error response from daemon: Get https://registry-1.docker.io/v2/: EOF (https://stackoverflow.com/q/72052202?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/72052202/why-cant-build-the-docker-image?rq=3) Why can't build the docker image? (https://stackoverflow.com/q/73405762?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/73405762/unable-to-build-docker-image-connection-refused?rq=3) Unable to build docker Image, connection refused (https://stackexchange.com/questions?tab=hot) Hot Network Questions (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/739015/mathbb-not-working-when-using-pdflatex-acmart-declaresymbolfont-stmaryrd-an) \mathbb not working when using pdfLaTeX, acmart, DeclareSymbolFont, stmaryrd, and bbold in a specific order (MathOverflow) (https://mathoverflow.net/questions/489355/na%c3%afve-category-theory-or-pedagogy-and-how-to-introduce-natural-transformatio) "Naïve category theory", or, pedagogy and how to Introduce natural transformations? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/123464/is-it-ethical-to-try-our-best-in-taking-the-perspective-of-the-individual-before) Is it ethical to try our best in taking the perspective of the individual before proceeding moral reasoning on them? (Linguistics Stack Exchange) (https://linguistics.stackexchange.com/questions/49852/in-spanish-why-is-the-u-in-gue-and-que-silent) In Spanish, why is the 'u' in 'gue' and 'que' silent? (MathOverflow) (https://mathoverflow.net/questions/489412/can-prime-numbers-be-isolated-as-zeros-of-a-harmonic-wave-function) Can prime numbers be isolated as zeros of a harmonic wave function? (Biblical Hermeneutics Stack Exchange) (https://hermeneutics.stackexchange.com/questions/102269/what-cultural-practice-did-jesus-have-in-mind-when-he-said-that-the-gates-of-ha) What cultural practice did Jesus have in mind when he said that "the gates of Hades will not prevail" in Matthew 16:18? (German Language Stack Exchange) (https://german.stackexchange.com/questions/78914/grammatically-speaking-what-is-kann-ermittelt-werden) Grammatically speaking, what is "Kann ... ermittelt werden"? (Personal Finance & Money Stack Exchange) (https://money.stackexchange.com/questions/165530/could-ishares-ibonds-funds-buy-bonds-that-are-not-issued-yet-in-the-future) Could iShares iBonds funds buy bonds that are not issued yet in the future? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/265292/how-would-a-society-with-no-wood-reliably-heat-itself) How would a society with no wood reliably heat itself? (Christianity Stack Exchange) (https://christianity.stackexchange.com/questions/105494/what-is-the-reasoning-that-leads-evangelicals-or-others-to-believe-attempting) What is the reasoning that leads Evangelicals (or others) to believe attempting to determine if a prominent figure is the Antichrist is acceptable? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741567/ac-behavior-of-capacitor-can-a-capacitor-start-out-giving-of-energy) AC behavior of capacitor: Can a capacitor start out giving of energy? (Cross Validated) (https://stats.stackexchange.com/questions/662643/how-to-compare-the-same-regression-model-in-two-samples-with-different-n) How to compare the same regression model in two samples with different N (Unix & Linux Stack Exchange) (https://unix.stackexchange.com/questions/792448/how-to-properly-protect-bash-history-against-truncation) How to properly protect .bash_history against truncation? (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/130974/who-was-the-victim) Who was the victim? (Music: Practice & Theory Stack Exchange) (https://music.stackexchange.com/questions/139145/do-vocalists-tune-upward-as-do-instrumentalists-rather-than-downward) Do vocalists "tune upward" as do instrumentalists, rather than downward (Literature Stack Exchange) (https://literature.stackexchange.com/questions/28952/how-widely-known-was-it-that-elia-was-charles-lamb) How widely known was it that Elia was Charles Lamb? (Movies & TV Stack Exchange) (https://movies.stackexchange.com/questions/124849/what-does-disney-took-the-subversive-edge-of-star-wars-and-neutralized-it) What does "...Disney took the subversive edge of Star Wars and neutralized it..." refer to? (Biblical Hermeneutics Stack Exchange) (https://hermeneutics.stackexchange.com/questions/102310/did-the-temple-soldiers-in-john-184-6-bow-or-get-knocked-down) Did the temple soldiers in John 18:4-6 bow or get knocked down? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5045737/if-a-subset-of-a-vector-space-is-also-a-vector-space-is-it-automatically-a-subs) If a subset of a vector space is also a vector space, is it automatically a subspace? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/739008/numbering-rows-except-header-row-in-a-table) Numbering rows except header row in a table (Travel Stack Exchange) (https://travel.stackexchange.com/questions/193733/flying-from-germany-to-poland-and-back-without-schengen-visa) Flying from Germany to Poland and back without Schengen visa (MathOverflow) (https://mathoverflow.net/questions/489464/how-to-make-this-system-ergodic) How to make this system ergodic? (English Language Learners Stack Exchange) (https://ell.stackexchange.com/questions/363162/what-does-i-could-use-me-mean) What does "I could use me." mean? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295478/short-story-about-a-man-who-removes-his-brain-from-his-head-as-performance-art) Short story about a man who removes his brain from his head as performance art (/feeds/question/48056365) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/48056365) () (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Your Privacy Choices (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.3.14.23880 By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy) Cookie Policy . Accept all cookies Necessary cookies only Customize settings