Skip to content

Instantly share code, notes, and snippets.

Avatar
💻

Evgeny Shmarnev Evalle

💻
View GitHub Profile
@Evalle
Evalle / gist:7b21e0357c137875a03480428a7d6bf6
Created Oct 20, 2017
How to configure Docker to use external DNS server
View gist:7b21e0357c137875a03480428a7d6bf6
Either via
$ docker run --dns 10.0.0.2 busybox nslookup google.com
or edit your /etc/docker/daemon.json to have something like:
{
"dns": ["10.0.0.2", "8.8.8.8"]
}
then restart docker service
View gist:b7301b7144e4ef868069e002fab042de
mysql> select * from endpoint;
+----------------------------------+----------------------------------+-----------+----------------------------------+------------------------------------------+-------+---------+-----------+
| id | legacy_endpoint_id | interface | service_id | url | extra | enabled | region_id |
+----------------------------------+----------------------------------+-----------+----------------------------------+------------------------------------------+-------+---------+-----------+
| 1d9f7ead5f7f4f8491fd38df9bffe5ae | 09f652fa15ac44e7b2a6a6acb72bcda1 | internal | 3030184b071b47d6adfe85c166ba27ba | http://controller:9292 | {} | 1 | RegionOne |
| 1fd60f9037444433bdc75864fc98b39f | e5f9cba0c0cb4b0d88dd3c069ee5b40b | admin | c03874e5d2b0498490723ddf8a023b9b | http://controller:9696 | {} | 1 | RegionOne |
| 42fbd00e51e14ffc9df5cff14b5681d
You can’t perform that action at this time.