-
Notifications
You must be signed in to change notification settings - Fork 134
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 call a local Docker image? #595
Comments
+1 this is the result: docker --version Docker version 26.1.4, build 5650f9b |
I encountered the same issue when using the docker executor to run a container with a locally built image. The way I get around that is by running a local docker registry instance. For example, let's say I have an image I want to use that I built on my machine with this command:
To make Dagu work with it you follow these steps:
|
Btw, ideally, there should be a an option to skip image pull here: dagu/internal/dag/executor/docker.go Line 60 in 6ce554b
Maybe something like this: executor:
type: 'docker'
config:
image: 'custom:v1'
+ pull: false @yohamta let me know what you think about this. I can submit a PR if you're interested |
Hi @x4204, thank you very much for providing the detailed workaround and the great suggestion about the option. This is really helpful. And yes, I would very much appreciate if you could submit a PR for adding the option. |
I got this example working: https://dagu.readthedocs.io/en/latest/yaml_format.html#use-host-s-docker-environment
But when I try to call a local Docker image, it tries to pull from Docker Hub and gives an error
Any ideas on how to fix this?
The text was updated successfully, but these errors were encountered: