How to restrict outbound traffic from a container?

Dear experts,

I’m looking for a way to restrict the outbound traffic from a docker container to only few certain IPs outside of Docker. Important to know, that I’m not allowed to make changes on the docker’s host (no iptables etc.) . I’m only allowed to execute the “docker” command.

I’ve tried to use iptables inside of containers, but it seems also not to be allowed.

Is there another way to to restrict the outbound traffic from a docker container to only few certain IPs outside of docker?

I thank You very much in advance!

JeMo