Docker credential shim using the JFrog API to access Artifactory.
This internally calls the JFrog go client library to access the same stored credentials that are used by the JFrog CLI.
- Install the
docker-credential-artifactory
binary somewhere on yourPATH
. - Add the following entry to your
~/.docker/config.json
{ [...] "credHelpers": { "<server-id>.jfrog.io": "artifactory" } }
- Use
jf login
to get credentials to log into artifactory. - You should now be able to run
docker pull <server.id>.jfrog.io/<repo>/<image>:<tag>