[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to set an proxy in the openshift origin to pull the image



Thanks,
    But do you know the the exact meaning of the  paraterm USERNAME:PAWWORD ?
The username and password for the openshift cluster?or for the VPN or other meaning?

Proxying Docker Pull

OpenShift Origin node hosts need to perform push and pull operations to Docker registries. If you have a registry that does not need a proxy for nodes to access, include the NO_PROXY parameter with the registry??s host name, the registry service??s IP address, and service name. This blacklists that registry, leaving the external HTTP proxy as the only option.

  1. Edit the /etc/sysconfig/docker file and add the variables in shell format:

    HTTP_PROXY=http://USERNAME:PASSWORD 10 0 1 1:8080/
    HTTPS_PROXY=https://USERNAME:PASSWORD 10 0 0 1:8080/
    NO_PROXY=master.hostname.example.com,172.30.123.45,docker-registry.default.svc.cluster.local
  2. Restart the Docker service:

    # systemctl restart docker
------------------ Original ------------------
From:  "aleks";<al-openshiftusers none at>;
Date:  Fri, Jul 22, 2016 03:03 AM
To:  "??????"<huakang zhou qq com>;
Cc:  "users"<users lists openshift redhat com>;
Subject:  Re: How to set an proxy in the openshift origin to pull the image

Hi.

Am 21-07-2016 09:33, schrieb ??????:

> Hi
> When i try the deploy the example apps,it shows that in the log i need
> to set an proxy,but how?
> log:
> "API error (500): Get
> https://registry-1.docker.io/v2/library/dancer-example/manifests/latest:
> Get
> https://auth.docker.io/token?scope=repository%3Alibrary%2Fdancer-example%3Apull&service=registry.docker.io:
> dial tcp: lookup auth.docker.io on 10.202.72.116:53: read udp
> 10.161.67.132:57753->10.202.72.116:53: i/o timeout\n"

Maybe this can help

https://docs.openshift.org/latest/install_config/http_proxies.html

BR aleks

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]