When following the tutorial, my-first-deployment crashes

Hello, I’m in the final step of the “Workers” chapter of the tutorial. The command shown for this step is incorrect afaict (which is not the issue I struggle with :-), and it probably should say:

prefect deployment run get-repo-info/my-first-deployment

When I run this then the work-pool is spinning up the container, which then crashes because the container cannot reach (see stack-trace below). I have a few questions:

  • is this simply caused by a missing port-mapping between the host and the container?
  • if so, what’s the easiest way to add this port mapping
  • suppose I wanted to fix this by writing my own dockerfile, it would be nice to take the dockerfile from prefect as a starting-point (just to stay close to the default settings as much as possible). Where can I find this dockerfile?

Thanks in advance,

16:10:29.456 | INFO | prefect.flow_runs.worker - Worker ‘DockerWorker d70704be-b17f-48f8-a2e3-91372f3381fd’ submitting flow run ‘0481cf01-eda6-4700-940c-11c5c84f9d07’
16:10:29.623 | INFO | prefect.worker.docker.dockerworker d70704be-b17f-48f8-a2e3-91372f3381fd - Creating Docker container ‘resilient-skink’…
16:10:29.658 | INFO | prefect.worker.docker.dockerworker d70704be-b17f-48f8-a2e3-91372f3381fd - Docker container ‘resilient-skink’ has status ‘created’
16:10:29.802 | INFO | prefect.worker.docker.dockerworker d70704be-b17f-48f8-a2e3-91372f3381fd - Docker container ‘resilient-skink’ has status ‘running’
16:10:29.807 | INFO | prefect.flow_runs.worker - Completed submission of flow run ‘0481cf01-eda6-4700-940c-11c5c84f9d07’
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/anyio/_core/_sockets.py”, line 167, in try_connect
stream = await asynclib.connect_tcp(remote_host, remote_port, local_address)
File “/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py”, line 1627, in connect_tcp
await get_running_loop().create_connection(
File “/usr/local/lib/python3.9/asyncio/base_events.py”, line 1065, in create_connection
raise exceptions[0]
File “/usr/local/lib/python3.9/asyncio/base_events.py”, line 1050, in create_connection
sock = await self._connect_sock(
File “/usr/local/lib/python3.9/asyncio/base_events.py”, line 961, in _connect_sock
await self.sock_connect(sock, address)
File “/usr/local/lib/python3.9/asyncio/selector_events.py”, line 500, in sock_connect
return await fut
File “/usr/local/lib/python3.9/asyncio/selector_events.py”, line 535, in _sock_connect_cb
raise OSError(err, f’Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed (‘’, 4200)