When you connect via python, you're connecting from within a WM worker that has access to the intern

When you connect via python, you're connecting from within a WM worker that has access to the internal Docker network.
When you connect using the docker run, you're running a docker client that lives inside the worker, and this client is connecting to the host system, therefore, if you want to connect from there, your have to expose the redis container to the host.
Was this page helpful?