When executing "docker login" command, Docker client first performs a non-authenticated request and then receives a 200 response when getting the token for the configured user:
Respectively, the request.log will display the same entries (notice the 401 response for the first request and 200 for the second request):
We can simulate the request by simply running the below cURL command:
$ curl -u<USERNAME> http://<ARTIFACTORY_URL>:<PORT>/artifactory/api/docker/docker/v2/token
Respectively, the request.log will display the same entries (notice the 401 response for the first request and 200 for the second request):
We can simulate the request by simply running the below cURL command:
$ curl -u<USERNAME> http://<ARTIFACTORY_URL>:<PORT>/artifactory/api/docker/docker/v2/token