Open alankritaman opened 6 months ago
Discovered a workaround in the GitLab configuration to address the issue. Removed the docker-certs
section from the previous configuration.
Previous Configuration:
config.template.toml: |
[[runners]]
[runners.kubernetes]
namespace = "gitlab"
tls_verify = false
image = "docker:19"
privileged = true
[[runners.kubernetes.volumes.empty_dir]]
name = "docker-certs"
mount_path = "/certs/client"
medium = "Memory"
New Configuration:
config.template.toml: |
[[runners]]
[runners.kubernetes]
image = "docker:26.1"
privileged = true
namespace = "gitlab"
tls_verify = false
Additionally, updated the gitlab-ci.yml
file with the following configuration:
stage: mvnbuild
services:
- name: docker:dind
command: ["--tls=false"]
variables:
DOCKER_HOST: "tcp://docker:2375"
DOCKER_TLS_CERTDIR: ""
Description
Encountered an error while attempting to utilize the docker-maven-plugin for building multi-architecture images in GitLab. The error message received was:
Following advice provided, I executed the following commands before initiating the build process:
Despite implementing these commands, the error persisted. Attempting to build manually using the following command was successful:
However, when attempting to execute the build command through Maven (
mvn
), the same error continued to occur.Even after attempting to manually create a Docker context using the following exec-maven-plugin code, the error persisted unchanged.
Info
docker-maven-plugin version :
Maven version (
mvn -v
) :Docker version :
If it's a bug, how to reproduce :