How to create custom container that exposes a listening port?
Hi, with the custom container service it is possible to deploy other services with the cephadm orchestrator: https://docs.ceph.com/en/reef/cephadm/services/custom-container/ The application inside the container wants to listen to a port (say 8080/tcp). How do I tell podman to publish this port? I tried adding this to the service specification: extra_container_args: - "--publish 8080/tcp" but this results in this error: Error EINVAL: ServiceSpec: __init__() got an unexpected keyword argument 'extra_container_args' https://docs.ceph.com/en/reef/cephadm/services/#extra-container-arguments Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin https://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Amtsgericht Berlin-Charlottenburg - HRB 220009 B Geschäftsführer: Peer Heinlein - Sitz: Berlin
On 5/31/24 16:07, Robert Sander wrote:
extra_container_args: - "--publish 8080/tcp"
Never mind, in the custom container service specification it's "args", not "extra_container_args". Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin https://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Amtsgericht Berlin-Charlottenburg - HRB 220009 B Geschäftsführer: Peer Heinlein - Sitz: Berlin
participants (1)
-
Robert Sander