Photon OS

Photon OS - Docker not connecting repository

  • 1.  Photon OS - Docker not connecting repository

    Posted Sep 05, 2019 12:19 PM

    Hi,

    I've deployed a photon OS VM for spinning containers. The initial configuration is done but my docker engine is not able to contact its repository and gives you the below error when tried.

    docker run hello-world

    Unable to find image 'hello-world:latest' locally

    docker: 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).

    The setup is behind a proxy server. Below is my proxy and DNS configuration:

    (/etc/sysconfig/proxy)

    PROXY_ENABLED="yes"

    HTTP_PROXY="http://myproxyip:9400/"

    HTTPS_PROXY="http://myproxyip:9400/"

    (/etc/tdnf/tdnf.conf)

    [main]

    gpgcheck=1

    installonly_limit=3

    clean_requirements_on_remove=true

    repodir=/etc/yum.repos.d

    cachedir=/var/cache/tdnf

    https_proxy="http://myproxyip:9400/"

    (/etc/resolv.conf)

    nameserver myADserverIP

    nameserver myADserverIP

    nameserver 8.8.8.8

    It seems like the server is talking to internet using proxy. Checked this with curl command:

    root@photon [ /etc/tdnf ]# curl http://www.google.com

    <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-IN"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/logos/doodles/2019/teachers-day-2019-india-6207256612831....

    Am I missing any other configuration ? Please help