spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.67k stars 575 forks source link

Plugin fails with osx #412

Closed alonsoir closed 5 years ago

alonsoir commented 5 years ago

Description

It is not working when i try to run mvn package docker:build. This is the code.

How to reproduce

git clone https://github.com/alonsoir/stream-java8-test/tree/feature-add-docker mvn package docker:build

What do you expect

I expect the container with the image instantiated.

What happened instead

https://pastebin.com/8QKieuHw

Software:

Server: Docker Engine - Community Engine: Version: 18.09.0 API version: 1.39 (minimum version 1.12) Go version: go1.10.4 Git commit: 4d60db4 Built: Wed Nov 7 00:55:00 2018 OS/Arch: linux/amd64 Experimental: false

Full backtrace

https://pastebin.com/uXWiwZGE
mattnworb commented 5 years ago

The pom.xml you linked to is trying to build an image with name aironman/MyStreamjava8. Docker does not allow image names with upper-case characters.

The plugin does not handle the error response from the docker daemon well in this case, see https://github.com/spotify/docker-maven-plugin/issues/206