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 use github registry? #358

Open
louis030195 opened this issue Dec 19, 2023 · 1 comment
Open

how to use github registry? #358

louis030195 opened this issue Dec 19, 2023 · 1 comment
Labels
question Further information is requested

Comments

@louis030195
Copy link

how do you use non docker hub registry? Getting 404:

let config = Config {
    image: Some("ghcr.io/stellar-amenities/assistants/assistants-code-interpreter:latest"),
    host_config: Some(HostConfig {
        auto_remove: Some(true),
        ..Default::default()
    }),
    attach_stdin: Some(true),
    attach_stdout: Some(true),
    attach_stderr: Some(true),
    open_stdin: Some(true),
    tty: Some(true),
    ..Default::default()
};
@fussybeaver
Copy link
Owner

The unix tests mostly use a private registry, so the image_push_test shows without too much indirection how to pull and authenticate a pull from a non-docker hub registry https://github.com/fussybeaver/bollard/blob/master/tests/container_test.rs#L55-L119

@fussybeaver fussybeaver added the question Further information is requested label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants