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

Using local and non-docker-hub registries #55

Open
mskyttner opened this issue Sep 4, 2020 · 0 comments
Open

Using local and non-docker-hub registries #55

mskyttner opened this issue Sep 4, 2020 · 0 comments

Comments

@mskyttner
Copy link

This might be more of a question since I haven't found anything in the vignettes or when searching through issues. My use case is to work with a) locally built containers and b) containers hosted on the github container registry (see https://www.docker.com/blog/docker-support-for-the-new-github-container-registry/).

a) To run a container residing only in the local registry I have tried:

docker <- stevedore::docker_client()
potrace <- docker$container$run(image = "image/slug:localregistry", cmd = "potrace -h", rm = TRUE, tty = TRUE)

This gives: Error: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: "potrace -h": executable file not found in $PATH": unknown

Regardless of the parameter tty I get the same message. Am I doing it wrong? I'm trying to replicate what I have working at the bash prompt when I do this:

docker run --rm image/slug:localregistry potrace -h

b) How do I configure the client to use the github container registry for pulling images?

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

1 participant