The container networking behavior can't be modified by the SDK. This is managed by the backend when the host VM is provisioned. It may be technically possible to SSH into the host VM in
user-managed mode, but this would need to be done manually each time a new VM instance is spun up and would not be practical. You would be much better off using a standard Compute Engine instance where you can tailor Docker to your specific needs.