Docker and HTTP Proxy

Introduction

Access Anywhere makes use of Micro-services for key components of Access Anywhere Service. In order to deploy/manage the micro-services Access Anywhere leverages Docker.

A public internet Docker repository is used for Access Anywhere at registry.storagemadeeasy.com.

For customers behind a proxy, there are configuration changes required for docker to be able to issue pull commands through the proxy.

Docker Proxy

As root, on all the NAA nodes running docker micro-services the following configuration changes are required. This is the upstream document: Docker Proxy

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

Then we we create a file in that directory like so:

/etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTP_PROXY=http://<proxyserver>:3128"
Environment="HTTPS_PROXY=http://<proxyserver>:3129"

Update the <proxyserver> with the proxy server for your environment and any relevant ports updated as well.

Next reload the systemd service to update those settings:

systemctl daemon-reload

After completed restart docker

sudo systemctl restart docker

Now you're all set, all docker pull commands and the NAA rpms which pull down images will work correctly through your proxy.