Reputation: 644
I have the following images on RHEL7:
sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost:5000/myrhel7 latest dc2f776f25d9 6 days ago 208 MB
registry.access.redhat.com/rhel7/rhel latest dc2f776f25d9 6 days ago 208 MB
skopeo fails so:
sudo skopeo inspect docker://localhost:5000/myrhel7
FATA[0000] Error parsing image name "docker://localhost:5000/myrhel7": error pinging docker registry localhost:5000: Get https://localhost:5000/v2/: http: server gave HTTP response to HTTPS client
Then, following the Red Hat documentation I prepended "http:":
sudo skopeo inspect docker://http:localhost:5000/myrhel7
FATA[0000] Error parsing image name "docker://http:localhost:5000/myrhel7": invalid reference format
The same occurs prepending "http://" :
sudo skopeo inspect docker://http://localhost:5000/myrhel7
FATA[0000] Error parsing image name "docker://http://localhost:5000/myrhel7": invalid reference format
So, Am I doing something wrong? How do I fix it?
Upvotes: 1
Views: 1053