From d49bdb898195982764f0c6af9c19ce3ca317a1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Durieu?= Date: Mon, 25 Mar 2024 23:49:24 +0100 Subject: [PATCH] Suggest using the host netkwork mode Using the host networking guarantees that running mutliple container won't cause port conflicts --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bc2d40..2a7d7e3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Install [Docker](https://www.docker.com/products/docker-desktop/) (and [WSL](htt ```bash docker volume create ruby-bundle-cache -alias docked='docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) -v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/rails/cli' +alias docked='docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) -v ruby-bundle-cache:/bundle --network host ghcr.io/rails/cli' ``` Then create your Rails app: