Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot download unofficial dockerhub repos #11

Closed
tpdownes opened this issue May 22, 2017 · 3 comments
Closed

cannot download unofficial dockerhub repos #11

tpdownes opened this issue May 22, 2017 · 3 comments
Assignees

Comments

@tpdownes
Copy link
Contributor

I am trying to use this script in my own workflow. I find that it works fine for official repos such as centos:6 (etc) but not for ones in other namespaces. e.g. LIGO

thomas.downes@downes-dev:~/cvmfs-singularity-sync$ ./cvmfs-singularity-sync --docker ligo/ligo-wn:latest --rootfs /tmp/tpdownes/
Docker image to publish: ligo/ligo-wn:latest
Error getting tags using url https://registry-1.docker.io/v2/ligo/ligo-wn/tags/list

I do not believe this was always the case. It affects the bulk of the repos listed in docker_images.txt and the behavior is the same if I use the images-url argument instead.

I have also tried reverting to a version prior to glob support with the same outcome. I have even tried the cli.py file inside the singularity package. Same outcome.

Is this what it would look like if I have been blocked by Docker hub?

@bbockelm
Copy link
Collaborator

Now that we overhauled the guts of this script to use the local Docker daemon (having access to the full set of APIs), we should be able to do this, I think.

Adding Derek.

@tpdownes
Copy link
Contributor Author

tpdownes commented Oct 13, 2017

I tested my script against containers.ligo.org (even authenticated) successfully.

    if username is not None and token is not None:
        client.login(username=args.username, password=args.token,
                registry=args.registry)

I originally took your approach of saving the image (which is tar) and untarring it but I thought it unnecessarily expensive.

@jthiltges
Copy link
Contributor

I believe this issue is resolved. We've since switched to apptainer (singularity) sandbox to generate images in #195.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants