Skip to content

Instantly share code, notes, and snippets.

@repodevs
Created December 5, 2018 05:48
Show Gist options
  • Save repodevs/881697c59ca4665eed393230daebffe6 to your computer and use it in GitHub Desktop.
Save repodevs/881697c59ca4665eed393230daebffe6 to your computer and use it in GitHub Desktop.
Docker macOS host cannot access to container.
For my issue. adding alias is solved
$ docker inspect YOUR-CONTAINER
get the IP and add to alias
$ sudo ifconfig lo0 alias IP
$ sudo ifconfig lo0 alias 172.17.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment