Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Platform build fails with OrbStack on MacOS #1710

Open
elektro-wolle opened this issue Oct 2, 2023 · 2 comments
Open

Multi-Platform build fails with OrbStack on MacOS #1710

elektro-wolle opened this issue Oct 2, 2023 · 2 comments

Comments

@elektro-wolle
Copy link
Contributor

Description

I'm using OrbStack instead of Docker-Desktop on MacOS, which seems to be more picky on the order of the command-line arguments of docker buildx:

$  mvn install
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------< de.elektrowolle.sample:maven-multiplatform >-------------
[INFO] Building maven-multiplatform 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- docker:0.43.0:build (default) @ maven-multiplatform ---
[INFO] Building tar: /Users/wolle/workspace-polyas/polyas-project/docker-maven-plugin-orbstack-issue/target/docker/de.elektrowolle.sample/maven-multiplatform/0.0.1-SNAPSHOT/tmp/docker-build.tar
[INFO] DOCKER> [de.elektrowolle.sample/maven-multiplatform:0.0.1-SNAPSHOT]: Created docker-build.tar in 16 milliseconds
[INFO] DOCKER> docker --config /Users/wolle/workspace-polyas/polyas-project/docker-maven-plugin-orbstack-issue/target/docker/de.elektrowolle.sample/maven-multiplatform/0.0.1-SNAPSHOT/docker buildx create --driver docker-container --name maven
[INFO] DOCKER> unknown flag: --driver
[INFO] DOCKER> See 'docker --help'.
[INFO] DOCKER> 
...

According to docker buildx create --help (which differs from DockerDesktop), the config flag seems to be allowed only after docker buildx create:

 $  docker buildx create --help

Usage:  docker buildx create [OPTIONS] [CONTEXT|ENDPOINT]

Create a new builder instance

Options:
      --append                   Append a node to builder instead of changing it
      --bootstrap                Boot builder after creation
      --buildkitd-flags string   Flags for buildkitd daemon
      --config string            BuildKit config file
      --driver string            Driver to use (available: "docker-container", "kubernetes", "remote")
      --driver-opt stringArray   Options for the driver
      --leave                    Remove a node from builder instead of changing it
      --name string              Builder instance name
      --node string              Create/modify node with given name
      --platform stringArray     Fixed platforms for current node
      --use                      Set the current builder instance

Info

  • docker-maven-plugin version: 0.43.4
  • Maven version (mvn -v) :
Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: /opt/homebrew/Cellar/maven/3.9.4/libexec
Java version: 21, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/21/libexec/openjdk.jdk/Contents/Home
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
@peschee
Copy link

peschee commented Oct 17, 2023

Possibly related to (or a duplicate of) #1701?

@elektro-wolle
Copy link
Contributor Author

Closed as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants