Closed govind22 closed 5 years ago
I think its looking for the authtoken from somewhere else as per the logs
Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
on windows I've set those as an env variables also in ubuntu. Thats why manual docker commands works fine because it refers to the env variables whereas docker plugin is looking it somewhere else.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
I'm using the docker maven plugin in order to build and push the docker image to the Aws ECR docker registry and it works fine on my windows machine but when I tried to run it on Teamcity Server (Ubuntu agent) it keeps throwing an exception while pushing it to the Registry.
I did not configure anything in my maven settings file. I usually login using below command $(aws ecr get-login --no-include-email --region my-region) then I run the maven commands (docker commands are embedded as a part of maven goals) and it works fine.
Now I'm doing the same thing on Ubuntu and it logs in successfully using docker -u user -p pwd command and I could push and pull images from ECR successfully by running manual docker commands but it does not works when I run mvn clean deploy (because of spotify plugin)
My Pom setup for spotify docker plugin
`
What do you expect
As it works fine on windows then it should also work fine on Ubuntu
What happened instead
Docker setup : `
WARNING: No swap limit support Images: 14 Server Version: 18.06.0-ce Storage Driver: aufs Root Dir: /local/mnt/docker/aufs Dirperm1 Supported: false Logging Driver: json-file Cgroup Driver: cgroupfs Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Runtimes: runc Docker Root Dir: /local/mnt/docker Registry: https://index.docker.io/v1/ 127.0.0.0/8 Live Restore Enabled: false`
Full backtrace
I've already configured accesstoken, secretkey and session token as like windows. But Teamcity ubuntu agent keeps failing
Please help.