Transmode / gradle-docker

A Gradle plugin to build Docker images from the build script.
Apache License 2.0
647 stars 142 forks source link

not able to build #130

Closed automatenv212 closed 6 years ago

automatenv212 commented 6 years ago

I am able to generate a dockerfile using the task buildDocker(type: Docker) { baseImage = 'openjdk:8-jre-alpine' applicationName = 'sample'}

I can see docker config file being created. but the task fails with an error

Docker execution failed Command line [docker build -t jetty-sample:latest C:\Users\Administrator\repository\prj1\poc\build\docker] returned: time="2018-01-11T11:44:37-08:00" level=error msg="failed to dial gRPC: unable to upgrade to h2c, received 501" context canceled Can anyone help ? I am able to build the using the generated file if I do cd build/docker manually execute docker build -t jetty-sample:latest .

bjornmagnusson commented 6 years ago

Looks like the error message is retrieved from the Docker daemon, but personally I do not recognize it. Can you provide an code example? And also some details of your environment

automatenv212 commented 6 years ago

resolved it, I had to setup proxies and docker env varibale