Open icemagno opened 6 years ago
By the way what must be runnning at localhost:2379
?
After start the container using command \bin\bash
app@1a61b8dfdc65:/go/src/github.com/RichardKnop/go-oauth2-server$ go-oauth2-server runserver
INFO: 2018/05/17 13:18:10 etcd.go:90 ETCD Endpoints: localhost:2379
FATAL: 2018/05/17 13:18:15 factory.go:71 dial tcp 127.0.0.1:2379: connect: connection refused
app@1a61b8dfdc65:/go/src/github.com/RichardKnop/go-oauth2-server$
Ok. Can run all now after use the docker compose
option. All its fine.
How can I create clients ?
Commands:
1) git clone https://github.com/RichardKnop/go-oauth2-server.git
2) cd go-oauth2-server/
3) docker build -t go-oauth2-server:latest .
4) docker run -e ETCD_ENDPOINTS=localhost:2379 -p 8070:8080 --name go-oauth2-server go-oauth2-server:latest
Result:
But the container is not running:
Error response from daemon: Container 1a61b8dfdc65cf13f91edd5d7f2ab954215e38f20e8cda629c94ed8adf034930 is not running
What I have done wrong ?