Unable to resolve github.com from container

preethiraja 1 Reputation point
2020-01-06T07:24:15.153+00:00

I am trying to build and deploy an application using oc cluster up which throws me the below error while build.

Cloning "https://github.com/neoncyrex/phpinfo.git " ...
WARNING: timed out waiting for git server, will wait 1m4s
error: fatal: unable to access 'https://github.com/neoncyrex/phpinfo.git/': Could not resolve host: github.com; Unknown error

please find the configurations below:

oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Client:
Version: 18.09.9
API version: 1.39
Go version: go1.11.13
Git commit: 039a7df9ba
Built: Wed Sep 4 16:57:28 2019
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.9
API version: 1.39 (minimum version 1.12)
Go version: go1.11.13
Git commit: 039a7df
Built: Wed Sep 4 16:19:38 2019
OS/Arch: linux/amd64
Experimental: false

unable to understand what needs to be done to make it work.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,409 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nick 6 Reputation points
    2020-01-06T18:03:21.91+00:00

    I've only run into this when trying to get new images for K8s from my Azure Container Registry when the resource doesn't have permissions set. Have you checked to see if it works locally or with broader permissions?

    1 person found this answer helpful.
    0 comments No comments