this is the documentation for the API: https://docs.docker.com/engine/api/v1.24/#containers where you'll see that for the create container method a section of the JSON labelled "NetworkingConfig" is displayed
this section is not described at all and I can't quite figure out how to express what I need, which is the equivalent of a docker-compose:
services:
myservice:
networks:
- mynetwork
networks:
mynetwork:
external: true
how can I do the above programatically?