From 54b52c8f1c62063a119f8821bed2a7564fd9d988 Mon Sep 17 00:00:00 2001 From: William Comnisky Date: Tue, 10 Sep 2019 22:49:03 +0200 Subject: [PATCH] Fixes issue #116: append a new host to the /etc/hosts file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec7a9b23..e99c8b61 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Docker-symfony gives you everything you need for developing Symfony application. ```bash # UNIX only: get containers IP address and update host (replace IP according to your configuration) (on Windows, edit C:\Windows\System32\drivers\etc\hosts) - $ sudo echo $(docker network inspect bridge | grep Gateway | grep -o -E '([0-9]{1,3}\.){3}[0-9]{1,3}') "symfony.local" >> /etc/hosts + $ echo $(docker network inspect bridge | grep Gateway | grep -o -E '([0-9]{1,3}\.){3}[0-9]{1,3}') "symfony.local" | sudo tee -a /etc/hosts ``` **Note:** For **OS X**, please take a look [here](https://docs.docker.com/docker-for-mac/networking/) and for **Windows** read [this](https://docs.docker.com/docker-for-windows/#/step-4-explore-the-application-and-run-examples) (4th step).