thetechnocrat-dev / GoDoRP

GoDoRP (Golang, Docker, React, Postgres)
MIT License
206 stars 47 forks source link

Containers won't connect to the nerwork #7

Open rafalbraun opened 6 years ago

rafalbraun commented 6 years ago

I don't know how you (or I) did this but containers won't connect to the internet.

After cloning project and doing

docker-compose up --build

all I get is this for frontend:

npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/react failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-08-25T15_17_34_837Z-debug.log ERROR: Service 'frontend' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

and this for api:

# git clone https://github.com/jinzhu/gorm /go/src/github.com/jinzhu/gorm
Cloning into '/go/src/github.com/jinzhu/gorm'...
fatal: unable to access 'https://github.com/jinzhu/gorm/': Could not resolve host: github.com
package github.com/jinzhu/gorm: exit status 128
ERROR: Service 'api' failed to build: The command '/bin/sh -c go get github.com/jinzhu/gorm' returned a non-zero code: 1

Setup:

docker version Client: Version: 1.13.1 API version: 1.26 Go version: go1.6.2 Git commit: 092cba3 Built: Thu Nov 2 20:40:23 2017 OS/Arch: linux/amd64

Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Go version: go1.6.2 Git commit: 092cba3 Built: Thu Nov 2 20:40:23 2017 OS/Arch: linux/amd64 Experimental: false

docker-compose version docker-compose version 1.21.2, build a133471 docker-py version: 3.3.0 CPython version: 3.6.5 OpenSSL version: OpenSSL 1.0.1t 3 May 2016

kusnandartoni commented 5 years ago

I don't know how you (or I) did this but containers won't connect to the internet.

After cloning project and doing

docker-compose up --build

all I get is this for frontend:

npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/react failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-08-25T15_17_34_837Z-debug.log ERROR: Service 'frontend' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

and this for api:

# git clone https://github.com/jinzhu/gorm /go/src/github.com/jinzhu/gorm
Cloning into '/go/src/github.com/jinzhu/gorm'...
fatal: unable to access 'https://github.com/jinzhu/gorm/': Could not resolve host: github.com
package github.com/jinzhu/gorm: exit status 128
ERROR: Service 'api' failed to build: The command '/bin/sh -c go get github.com/jinzhu/gorm' returned a non-zero code: 1

Setup:

docker version Client: Version: 1.13.1 API version: 1.26 Go version: go1.6.2 Git commit: 092cba3 Built: Thu Nov 2 20:40:23 2017 OS/Arch: linux/amd64 Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Go version: go1.6.2 Git commit: 092cba3 Built: Thu Nov 2 20:40:23 2017 OS/Arch: linux/amd64 Experimental: false

docker-compose version docker-compose version 1.21.2, build a133471 docker-py version: 3.3.0 CPython version: 3.6.5 OpenSSL version: OpenSSL 1.0.1t 3 May 2016

i get same problem with this