Why does docker or remote repository show 404 response when testing authentication

David Xu
2018-11-13 23:21

Summary

Docker or NPM remote repo setup

Details

When setting up Docker or NPM repositories proxying another artifactory instance, the URL will need a modification for the repository to function correctly.

Resolution

The URL will need to include"/api/docker" or "/api/npm":

http://my-remote-site:8081/artifactory/api/docker/<repository key>

This is because docker and npm clients talk to api endpoints rather than http calls.