Git Product home page Git Product logo

Comments (4)

soujhony avatar soujhony commented on August 11, 2024

+1
when i run:
docker run -v /var/run/docker.sock:/var/run/docker.sock -p 2376:2375 bobrik/socat TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock

this is the result:
Unable to find image 'bobrik/socat:latest' locally
latest: Pulling from bobrik/socat
docker: [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/bobrik/socat:latest to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/.

docker --version

Docker version 26.1.4, build 5650f9b

from dagu.

x4204 avatar x4204 commented on August 11, 2024

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:

docker build --tag custom:v1 .

To make Dagu work with it you follow these steps:

  • run a local docker registry instance
docker run -d -p 5000:5000 registry:latest
  • tag your image so that you can push it to the local registry
docker image tag custom:v1 127.0.0.1:5000/custom:v1
  • push the image to the local registry
docker push 127.0.0.1:5000/custom:v1
  • use 127.0.0.1:5000/custom:v1 instead of custom:v1 in your dags

from dagu.

x4204 avatar x4204 commented on August 11, 2024

Btw, ideally, there should be a an option to skip image pull here: https://github.com/dagu-dev/dagu/blob/6ce554b57535fc24f2cccd3fbc4f63ccb3b8e0fe/internal/dag/executor/docker.go#L60

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

from dagu.

yohamta avatar yohamta commented on August 11, 2024

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.

from dagu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.