docker-maven-plugin: "DOCKER> unknown flag: --driver" on debian 12.4 "bookworm" amd64

Description

Info

  • docker-maven-plugin version : 0.43.4
  • Maven version (mvn -v) :
Apache Maven 3.8.7
Maven home: /usr/share/maven
Java version: 17.0.9, vendor: Debian, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.1.0-16-amd64", arch: "amd64", family: "unix"
  • Docker version : Docker version 20.10.24+dfsg1, build 297e128
  • If it’s a bug, how to reproduce :
git clone https://github.com/steinarb/sonar-collector.git
cd sonar-collector
git checkout use-karaf-444-in-docker
mvn install
cd docker
mvn install

The final mvn command fails with:

[INFO] DOCKER> GET unix://127.0.0.1:1/version
[INFO] Building tar: /home/sb/workspaces/ws02/sonar-collector/docker/target/docker-build/sonar-collector/1.5.21/tmp/docker-build.tar
[INFO] DOCKER> [sonar-collector:1.5.21]: Created docker-build.tar in 28 milliseconds
[INFO] DOCKER> Using Docker CLI 20.10.24+dfsg1
[INFO] DOCKER> docker buildx create --driver docker-container --name maven
[INFO] DOCKER> unknown flag: --driver
[INFO] DOCKER> See 'docker --help'.
[INFO] DOCKER> 
[INFO] DOCKER> Usage:  docker [OPTIONS] COMMAND
...

Manually running the command

docker buildx create --driver docker-container --name maven

gives the same error message as the maven build failure

  • If it’s a feature request, what is your use case :
  • Sample project : [GitHub Clone URL]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

My guess is that Docker 20.10.24 is too old to support that --driver flag. You could check the help or man page for your docker command.

The current version of Docker is 24.x: https://docs.docker.com/engine/release-notes