Carla
Carla

Reputation: 3380

Openshift: unable to reach GitHub for running S2I


I have executed Openshift Origin with oc cluster up --version=latest I can see that a new version has been pulled (v3.6.0-alpha.1+7044e57-29). However since then, I'm not able to build any image. For example:

oc new-app --name=myapp openshift/wildfly~https://github.com/openshiftdemos/os-sample-java-web.git

Result:

error: build error: fatal: unable to access 'https://github.com/openshiftdemos/': Could not resolve host: github.com; Unknown error

I've tried running oc cluster up with root as well but result didn't change. Anything changed with the latest release ?

Upvotes: 2

Views: 771

Answers (3)

Pierluigi Vernetto
Pierluigi Vernetto

Reputation: 2050

try with:

sudo oc cluster down
sudo iptables -F
sudo oc cluster up

see also https://github.com/openshift/origin/issues/12110

Upvotes: 0

Tunceren
Tunceren

Reputation: 774

May the configuration behind a firewall? If so, try setting HTTP_PROXY_HOST and HTTP_PROXY_PORT environment variables.

Details can be accessed from here.

Upvotes: 1

wtrocki
wtrocki

Reputation: 208

Have you tried to use latest stable release? If this still do not work this may be version of your docker. Try to install latest stable release and then check your docker version.

Upvotes: 1

Related Questions