0

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?

BMitch
  • 231,797
  • 42
  • 475
  • 450
sebelk
  • 565
  • 1
  • 6
  • 16

1 Answers1

1

Skopeo supports this with an undocumented parameter --tls-verify (at least it's hidden from the --help output):

skopeo inspect --tls-verify=false  docker://localhost:5000/myrhel7

See issue 459 for the appropriate option on other commands.

BMitch
  • 231,797
  • 42
  • 475
  • 450