#How can I run a container with dagger?

1 messages · Page 1 of 1 (latest)

pearl owl
#

I know that dagger is used to replace docker build.
So I propose two ways.
1- Maybe someone has the key to run containers within dagger (using Python SDK)
2- How can I build docker images to use them with docker cli?

If the answer of the second is "publish the image to a platform"... I need these images be private

sterile ravine
#

I'm not entirely sure I understand 1. What's the use-case?

pearl owl
sterile ravine
#

I guess it really depends on where you want to run that container, but if that's docker , you can definitely orchestrate all that in python if required.

  • Use the Dagger SDK for the build pipeline
  • Use the python docker SDK to load and run the container
#

the main reason why running the container is not part of the Dagger python SDK is because it's a different model entirely if you're planning to do it for long lasting tasks