From 60e1152fb2febfa604e3716c37249cb0b5038468 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Wed, 19 Dec 2018 17:36:28 -0800 Subject: [PATCH] Update run-locally.md --- docs/run-locally.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/run-locally.md b/docs/run-locally.md index 1825884..a7e40fc 100644 --- a/docs/run-locally.md +++ b/docs/run-locally.md @@ -9,7 +9,9 @@ Note that this is an advanced process. Some of the concepts used in this section - Docker installed on your machine. - A local DNS server on your machine. You need to point `*.captain.x` to `127.0.0.1` or `192.168.1.2` (your local ip). **NOTE** that `etc/hosts` won't be enough as Captain needs a wildcard entry and `etc/hosts` does not allow wildcards, i.e. `*.something`. - - On ubuntu 16, `dnsmasq` (a local DNS server) is built-in. So, it's as simple of editing this file: `/etc/NetworkManager/dnsmasq.d/dnsmasq-localhost.conf` (create if does not exist) And add this line to it: `address=/captain.x/192.168.1.2` where `192.168.1.2` is your local IP address. To make sure you have `dnsmasq`, you can run `which dnsmasq` on your terminal, if it's available, path of it will be printed on the terminal, otherwise, there won't be anything printed on your terminal + - On ubuntu 16, `dnsmasq` (a local DNS server) is built-in. So, it's as simple of editing this file: `/etc/NetworkManager/dnsmasq.d/dnsmasq-localhost.conf` (create if does not exist) And add this line to it: `address=/captain.x/192.168.1.2` where `192.168.1.2` is your local IP address. To make sure you have `dnsmasq`, you can run `which dnsmasq` on your terminal, if it's available, path of it will be printed on the terminal, otherwise, there won't be anything printed on your terminal. + +Note: For Ubuntu 18, read https://askubuntu.com/questions/1029882/how-can-i-set-up-local-wildcard-127-0-0-1-domain-resolution-on-18-04 To verify you have both prerequisites mentioned above: - Run `docker version` and make sure your version is at least the version mentioned in the [docs](get-started.md#c-install-docker-on-server-at-least-version-1706x)