docker-maven-plugin
docker-maven-plugin copied to clipboard
Docker Desktop 4.13.0 default host provider issue on Mac
Description
After installing the Docker Desktop 4.13.0 on Mac, I have an issue:
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.40.1:build (build-docker-image) on project ws-linux-box-distribution: Execution build-docker-image of goal io.fabric8:docker-maven-plugin:0.40.1:build failed: No <dockerHost> given, no DOCKER_HOST environment variable, no read/writable '/var/run/docker.sock' or '//./pipe/docker_engine' and no external provider like Docker machine configured -> [Help 1]
It is connected with changes in Docker Desktop 4.13.0
on Mac source:
By default Docker will not create the /var/run/docker.sock symlink on the host and use the docker-desktop CLI context instead.
/var/run/docker.sock
is the default docker host url provider (DockerConnectionDetector.detectConnectionParameter
).
Info
- docker-maven-plugin version :
0.40.2
- Maven version (
mvn -v
) :
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/homebrew/Cellar/maven/3.8.6/libexec
Java version: 19, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/19/libexec/openjdk.jdk/Contents/Home
Default locale: en_PL, platform encoding: UTF-8
OS name: "mac os x", version: "12.5", arch: "aarch64", family: "mac"
- Docker version :
4.13.0
- If it's a bug, how to reproduce :
- uninstall the previous Docker Desktop
-
sudo rm /var/run/docker.sock
- install the newest Docker Desktop (
4.13.0
) - (error) build WebSight Starter with
./mvnw clean verify -P e2e
-
sudo ln -s ~/.docker/run/docker.sock /var/run/docker.sock
- (success) build WebSight Starter with
./mvnw clean verify -P e2e
- If it's a feature request, what is your use case :
- Sample project : WebSight Starter
Not a fix for the future, but they have reverted it in 4.13.1