Need help?

Our experts have had an average response time of 11.7 minutes in August 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Cannot download Docker images behind a proxy – How we fix it

by | Apr 8, 2021

Cannot download Docker images behind a proxy? We can help you resolve it.

Here at Bobcares, we have seen several such Docker-related issues while troubleshooting Docker issues as part of our Docker Hosting Support.

Today we’ll see how to fix this Docker error.


What to do when we Cannot download Docker images behind a proxy

We had a customer who installed Docker on his Ubuntu server. Then he tried running the below command.

sudo docker pull busybox

As a result, he received the below error.

Pulling repository busybox
2021/03/16 09:37:07 Get dial tcp: lookup on no answer from server

Now let’s see how our Support Engineers resolve this error for our customers.

In order to resolve this problem, we first create a systemd drop-in directory for the Docker service by running the below command.

mkdir /etc/systemd/system/docker.service.d

Next, we create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:


Note: In case, if you have internal Docker registries that you need to contact without proxying you can specify them via the NO_PROXY environment variable:


After that, we flush the changes by running the below command.

$ sudo systemctl daemon-reload

Then we verify if the configuration is loaded or not. For that, we run the below command.

$ sudo systemctl show --property Environment docker

Finally, we restart the Docker by running the below command.

$ sudo systemctl restart docker

Finally, this fixed the Docker error.

[Need any further assistance in fixing Docker errors? – We’re available 24*7]



Today, we saw how our Support Engineers resolve this error message for our customers.

Are you using Docker based apps?

There are proven ways to get even more out of your Docker containers! Let us help you.

Spend your time in growing business and we will take care of Docker Infrastructure for you.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *



Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.