I tried login to JFrog artifactory using docker commands:
root@dxc:/home/dxc# echo ${API_Key} | docker login --username 320060162 --password-stdin
But I am facing with the below error:
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I tried to check config.json file:
root@dxc:/home/dxc# cd .docker/
root@dxc:/home/dxc/.docker# cat config.json
{
"auths": {}
}
2
Answers
You can manually set your credentials in the config.json file as below:
You need to give artifactory endpoint as well in the docker login command.