[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 (Inactive)
Sprint: Leap 28

 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 Sat Jan 18 21:10:23 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.