Registries

Using a docker private registry with vctl

Currently I am using VMWare Fusion's vctl to run containers on my Mac. It has been surprisingly compatible with the Docker desktop, but occasionally you run into an issue.

I am currently using an unencrypted local repository and you get errors like:

% vctl login 192.168.1.1:5000
INFO Login to 192.168.1.1:5000...
Username: maurice
Password for maurice:
INFO Error logging in to v2 endpoint, trying next endpoint: Get https://192.168.1.1:5000/v2/: http: server gave HTTP response to HTTPS client
ERROR Get https://192.168.1.1:5000/v2/: http: server gave HTTP response to HTTPS client


The answer is trivial but literally buried at the end of the help for the login command:

vctl login --http my-plain-http-registry.com:5000

You will need to sprinkle the --http flag around your later commands too.

This was going to be an article about the tool skopeo (https://github.com/containers/skopeo) allows a user to copy from one repository to other formats, and I have included that for interest. Read More...