question

preethiraja-4784 avatar image
0 Votes"
preethiraja-4784 asked ·

Unable to resolve github.com from container

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

NickHeinbaugh avatar image
0 Votes"
NickHeinbaugh answered ·

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?

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.