title: Docker Networking Stack
body: <p>Currently I am trying to make my docker container's network stack be the same as my machine's in my docker-compose yml. I saw on the docker docs you can use "hostnet" to use your own network stack. I am using this but I keep getting an error saying...
  services:
    xxxxx:
    xxxxx:
      networks: 
        hostnet:{}</p>
  
  <p>networks:
    hostnet:
      external: true
      name: host</p>
  
  <p>networks.hostnet value Additional properties are not allowed ('name' was unexpected)</p>
  
  <p>What is wrong, and is there also a way to configure a docker compose file so that my container will have the same Network ID? </p>