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

How to properly use a custom image from another registry? #82

Open
jclsn opened this issue Jan 12, 2023 · 3 comments
Open

How to properly use a custom image from another registry? #82

jclsn opened this issue Jan 12, 2023 · 3 comments

Comments

@jclsn
Copy link

jclsn commented Jan 12, 2023

I can't seem to get the syntax right for this. I get the following output, when I run docker images

git.custom.com:1234/some-path/some-path/someimage   latest    2848f820ea3   3 months ago   631MB

I am trying to edit the pyrex.ini as follows

tag = some-path/some-path/someimage:latest

registry = git.custom.com

but I am getting the following output

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/libexec/pyrex/capture": stat /usr/libexec/pyrex/capture: no such file or directory: unknown.

I am assuming the whole url is not assembled correctly. Is there any way I can get Pyrex to provide verbose output to see what it actually tries to pull from?

EDIT: Okay, I just edited the pyrex.ini and printed the tag variable, which seems to be assembled correctly with the registry. No idea why it is failing. Could it be the port? The registry also requires a login. Does Pyrex support that?

@JoshuaWatt
Copy link
Collaborator

How did you create the image you are trying to pull (e.g. build it with a Dockerfile, mirrored the upstream pyrex image)? It looks like the image might be malformed from what pyrex is expecting (e.g. it's missing the capture script)

@jclsn
Copy link
Author

jclsn commented Jan 12, 2023 via email

@JoshuaWatt
Copy link
Collaborator

Pyrex has some very specific requirements for what's in the image (see the contents of the image directory), so you can't just use "any" image with it. If you want a custom image, I would recommend starting with one of the base Pyrex images, or at least looking into the image requirement by reading through the Dockerfile.

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

2 participants