Skip to content

Instantly share code, notes, and snippets.

@tonio-m
Created March 29, 2021 23:46
Show Gist options
  • Save tonio-m/0609b60d358df4b0c1e2cb66d2032043 to your computer and use it in GitHub Desktop.
Save tonio-m/0609b60d358df4b0c1e2cb66d2032043 to your computer and use it in GitHub Desktop.
Connecting to private IPs on the host's network from inside a docker container
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment