[RTFACT-15548] Change the Docker examples when using localhost / 127.0.0.1 Created: 28/Dec/17  Updated: 18/Jul/18  Resolved: 31/Jan/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: 5.8.0
Fix Version/s: 5.9.0

Type: Improvement Priority: Normal
Reporter: Ariel Kabov Assignee: Matan Gotlieb
Resolution: Fixed Votes: 0
Labels: None

Assigned QA: Dudi Morad

 Description   

When Accessing Artifactory 5.8.0 from "localhost" or "127.0.0.01", it provides docker examples using these addresses which are not permitted by docker.

Instead, I would expect the given example to use the Artifactory host IP.

If you try to "docker login" to localhost or 127.0.0.1 this will result in a "connection refused".

 arielk@arielk-mac  ~/ docker login localhost:8081                                                                                                            
Username: admin
Password:
Error response from daemon: Get http://localhost:8081/v2/: dial tcp [::1]:8081: getsockopt: connection refused

To use the Path Docker Access Method, use the Artifactory host IP explicitly:

 arielk@arielk-mac  ~/ docker login 10.1.16.16:8081                                                                                                           
Username (admin): admin
Password:
Login Succeeded


 Comments   
Comment by Ariel Kabov [ 28/Dec/17 ]

It is also important to add "10.1.16.16:8081" as an insecure registry in the docker client.
Additionally, you need to configure "Path" as the Docker Access Method under "HTTP Settings" in Artifactory.

Generated at Mon Aug 26 09:09:32 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.