# flow run time configuration
f.run_config = DockerRun(
labels=["dt4dev_osdataproc"],
image="<http://gitlab-registry.internal.sanger.ac.uk/pam-dt4/spark-service/spark-service-docker/spark-app:v0.3|gitlab-registry.internal.sanger.ac.uk/pam-dt4/spark-service/spark-service-docker/spark-app:v0.3>",
host_config={"port_bindings":{12001:12001}},
env={"rpc_port": "12001","bm_port": "12101"}
)
when I execute the flow I don't see the port mapping on docker ps
Copy code
root@dt4-prefect:~/prefect# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
079f58a79463 <http://gitlab-registry.internal.sanger.ac.uk/pam-dt4/spark-service/spark-service-docker/spark-app:v0.3|gitlab-registry.internal.sanger.ac.uk/pam-dt4/spark-service/spark-service-docker/spark-app:v0.3> "/usr/bin/entrypoint…" 10 seconds ago Up 9 seconds pearl-tiger
k
Kevin Kho
11/10/2021, 4:51 PM
Ok I’m not confident this is exposed now. The example here says it can be done without supplying the ports though. (check under port bindings). But in Prefect, the
ports
kwarg is not exposed. If what you tried doesn’t work, I think we need to open an issue
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.