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

Support podman $HOME/.config/containers/auth.json as an alternative to $HOME/.docker/config.json for auth credentials #1223

Open
mshannongit opened this issue Oct 15, 2024 · 1 comment

Comments

@mshannongit
Copy link

Many enterprise environments no longer support the use of docker, and instead use podman.

Running the gradlew dockerBuild action against a private artifactory results in the error -

"unable to retrieve auth token: invalid username/password: unknown: Authentication is required"

This becomes confusing, as one assumes if logged in to podman (via podman login), that the necessary credentials should be available.

However the gradle docker plugin does not know of the podman equivalent auth file to that of Docker's config.json.

One way to solve the problem is to create a symbolic link

mkdir -p $HOME/.docker
ln -s $HOME/.config/containers/auth.json $HOME/.docker/config.json

It would be preferrable however if the gradle docker plugin had native support for locating podman's auth.json file.

@bmuschko
Copy link
Owner

I am going to add something to the documentation that explains that Podman is not supported 100%.

I am not planning to add full Podman support, but you you feel strongly about it, please send a pull request. Thanks!

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