fussybeaver / bollard

Docker daemon API in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use github registry?

louis030195 opened this issue · comments

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()
};

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