Trying to use podman instead of docker

My environment requires some extra flags when running podman, when i try to start container from jupyterhub it fails with error. when i start singleuser container directly from cmd line a receive error need to add --security-opt=no-new-privileges --read-only to podman. not exact error message as it would disclose my employer.

How do I pass these arguments via jupyterhub? and will these restrictions break jupyterhub?

Are you using DockerSpawner? If so you can use the extra_create_kwargs and extra_host_config parameters:
https://jupyterhub-dockerspawner.readthedocs.io/en/latest/api/index.html

See Low-level API — Docker SDK for Python 7.1.0 documentation for available arguments.

As for whether it’ll break JupyterHub, the best thing is to try it! If you have problems please turn on debug logging and share your logs here.