Docker tasks don't seem to be pulling the right image #3914
Replies: 3 comments 3 replies
-
I just found this thread, and it was pretty illuminating: #2361 Since I'm starting my agent from within a docker container, I needed to pass the Additionally, it seems like I need to add a I have a new issue now (404 Client Error for http+docker://localhost/v1.39/containers/create: Not Found ("No such image: python:3.9-slim")... But, at least this is progress |
Beta Was this translation helpful? Give feedback.
-
Source code here: https://github.com/dusktreader/swarm-prefect |
Beta Was this translation helpful? Give feedback.
-
Well, I've made a lot of progress on this, but now I'm hitting a new befuddling issue:
Do I need to volume mount my flows directory into the the DockerAgent at /root/.prefect? I don't see anything about this in the docs |
Beta Was this translation helpful? Give feedback.
-
I'm sure I'm not doing something right here, but I've hit a spot where I have my Prefect infrastructure all up and flows registered. However, when the tasks kick off, they seem to be trying to pull the wrong images from the wrong repository.
So, I have a running Docker Agent which is connected and visible in the ui. When I run a flow with docker tasks, however, it does not seem to do the right things. My flow code is:
When I schedule the flow, though, the flow fails immediately:
I've tried a bunch of different approaches, but I feel like I'm missing something when it comes to running tasks with docker agents. I can share additional source code or configuration as needed to illustrate the problem. Any help would be very appreciated!
Beta Was this translation helpful? Give feedback.
All reactions