https://dagster.io/ logo
#dagster-support
Title
# dagster-support
m

Meder Kamalov

06/09/2022, 6:30 AM
Hey everyone! I’m using both the DockerRunLauncher and the docker_executor. Right now there is only one docker image that is used to build containers that execute job steps. It would be great to have more than one image and to be able to specify which step uses which image. Is it currently possible with Dagster? Thanks! 🙏
🤖 1
j

johann

06/09/2022, 4:30 PM
Hi Meder, I’m curious what your use case is. Are you looking to run a dagster op inside a different image? Would you be running some other cli command?
m

Meder Kamalov

06/10/2022, 8:10 AM
Hi Johann! Yes. Some ops have dependency conflicts and running them in different images seemed like a solution. Additionally, and this doesn’t have to be done via docker, it would be awesome to be able to specify a worker for an op. Some ops are memory intensive, while others might require a GPU, and so it would be great to be able to specify that somehow.
j

johann

06/10/2022, 8:05 PM
Got it. Both of these features are things we have for K8s, but haven’t ported to Docker. Can put them on the queue
@Dagster Bot issue Allow per step image and container config with docker_executor
d

Dagster Bot

06/10/2022, 8:05 PM
m

Meder Kamalov

06/13/2022, 7:02 AM
Thanks!
Hey @johann! I decided to give dagster_k8s a go. I can get the K8sRunLauncher working, but how do I specify workers per op? As mentioned above, I would like to be able to select a specific image for it, which in this case is a special worker. But from what I see K8sRunLauncher uses the same type of image for all workers.
j

johann

06/23/2022, 3:01 PM
To use a different image for an op, you’ll want to use the
k8s_job_executor
. Then you can specify an image in tags on each Op: https://dagster.slack.com/archives/C01U954MEER/p1644335565408589?thread_ts=1644334246.680049&cid=C01U954MEER
🙏 1
4 Views