Generator-jhipster: Docker Deployment Issues

Created on 15 Aug 2017  路  7Comments  路  Source: jhipster/generator-jhipster

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':buildDocker'.
    > Process 'command 'docker'' finished with non-zero exit value 1
if (OperatingSystem.current().isWindows()) {
        commandLine 'cmd', '/c', 'docker', 'image', 'build', '-f', 'build/docker/Dockerfile', '-t', 'gateway', 'build/docker/'
    } else {
        commandLine 'docker', 'image', 'build', '-f', 'build/docker/Dockerfile', '-t', 'gateway', 'build/docker/'
    }
$ docker image build

should be

$ docker build

Most helpful comment

anyway I guess the command syntax changed from v1.13 onwards. So upgrade docker

All 7 comments

This ticket has been closed as the guidelines are not followed.

Tickets must follow our Guidelines, as mentioned in:

  1. our Readme file on the front page of the project,
  2. the "create a new ticket" page and
  3. our Help page

We have also created a template on the "create a new ticket" page to help you follow those guidelines.

Open a new issue with proper details or update this issue with all details and request to reopen.
Issues opened without proper details will be closed without explanation.

If you have a question please use Stack Overflow for that. Tag the question with jhipster and someone will help you out there.

This helps us to keep our issue tracker clean. Also, Stack Overflow will give your query a larger audience.

you are probably using an old docker version but without any info we wouldn't know

Docker version 1.12.6, build 78d1802
Is not an old version

probably you didnt get the memo. Current docker version is 17.x

anyway I guess the command syntax changed from v1.13 onwards. So upgrade docker

It's a totally new Branch, most tools don't support it.
Yeah I'll prob upgrade.

Since the install instructions for docker 17 are wrong and it doesn't install (debian, ubuntu, mint, etc).
If it helps anyone (probably my future self)

sudo apt-key adv \ --keyserver hkp://ha.pool.sks-keyservers.net:80 \ --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
    sudo apt-get update
    sudo apt-get install docker-engine
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pascalgrimaud picture pascalgrimaud  路  3Comments

marcelinobadin picture marcelinobadin  路  3Comments

SudharakaP picture SudharakaP  路  3Comments

sdoxsee picture sdoxsee  路  4Comments

SudharakaP picture SudharakaP  路  3Comments