Did not work for me right away either but after checking with docker network ls that I had a different bridge than the default bridge in use for my container in question, then checking what the subnet of that bridge is with docker network inspect your_network_name and setting that subnet as...