-
Notifications
You must be signed in to change notification settings - Fork 173
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
Source downloader docker-http - Cannot pull from docker registry #809
Comments
@monstermunchkin any idea? I've not used the Docker downloader in a long time ;) |
I'd have to investigate this. IIRC I had a similar issue which was caused by either the image not existing or it being in a private repo. |
Thanks! Is there anything else I can do from my side to help with this? |
Hello. Hope that you're fine. I'm having the same issue, trying to connect to dockerhub directly. I have set the environment variables on the system, at export DOCKER_REGISTRY_BASE_USER=my_user_name
export DOCKER_REGISTRY_BASE_PASS=personal_access_token After that I logout and login and try to run the following command, Resulting in an unauthorized status code. distrobuilder build-lxc ./alpine.yaml ./output/ --cache-dir ./cache/
The yaml source code: image:
distribution: alpine_linux_example
description: Alpine Linux Example
release: latest
variant: default
source:
downloader: docker-http
url: alpine:latest
targets:
lxc:
create_message: |-
Container "{{ image.description }}" created - {{ source.url }}.
packages:
manager: apk
update: true
actions:
- trigger: post-files
action: |-
#!/bin/sh
uname -a
mappings:
architecture_map: alpinelinux Am I missing something? Best regards. |
Found this documentation about how docker and oci registries challenge the authentication: In the lines bellow I try to pull the I manually solved the challenge using my credentials by calling:
This may be a problem how the |
Hi, reporting my comment added in another issue that could be related to this too. I forked |
Here the main change: Now |
Hello! Sorry if this is not the proper way to post an issue here or if this is a bad config from my end.
I've been trying to setup a simple nodejs image with some nextjs app to test out and see what could I do, but I cannot find a way to use the docker-http source downlaoder, I've tried with public and private registry and I keep getting the same error:
And this is the yaml I'm trying to use:
The text was updated successfully, but these errors were encountered: