Skip to content

HTTP 400 Bad Request with docker-maven-plugin

November 16th, 2017 - IT(1 min)

TL;DR: Check your Dockerfile (try to build it manually) before anything else!

Today I was struggling with a 400 error:

Exception caught: Request error: POST 400: HTTP 400 Bad Request -> [Help 1]

when building an image with the docker-maven-plugin. After installing and uninstalling docker, cleaning up certificates etc, I figured out my setup had nothing to do with it. Instead, there was a configuration error or the docker file. More specific, I was using alpine and I forgot the RUN prefix to a command.

I’ve tried to dun the build manually and failed. Once I’ve fixed my Dockerfile, could run the maven build without a hitch.


Share on

A little experiment: