From 0810cb701faceb8156edce221e1281384cf0a3cb Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sat, 24 Aug 2024 13:31:18 +0200 Subject: [PATCH] docs(readme): added name and restart flag in selfhost docker commands --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8cbcd055..4e18609b 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ You can quickly run the application using Docker. ```bash # From docker hub -docker run -d -p 8787:8787 corentinth/enclosed +docker run -d --name enclosed --restart unless-stopped -p 8787:8787 corentinth/enclosed # or from GitHub Container Registry -docker run -d -p 8787:8787 ghcr.io/corentin-th/enclosed +docker run -d --name enclosed --restart unless-stopped -p 8787:8787 ghcr.io/corentin-th/enclosed ``` **With volume persistency** @@ -38,9 +38,9 @@ Replace `/path/to/local/data` with the path to your local data directory. ```bash # From docker hub -docker run -d -p 8787:8787 -v /path/to/local/data:/app/.data corentinth/enclosed +docker run -d --name enclosed --restart unless-stopped -p 8787:8787 -v /path/to/local/data:/app/.data corentinth/enclosed # or from GitHub Container Registry -docker run -d -p 8787:8787 -v /path/to/local/data:/app/.data ghcr.io/corentin-th/enclosed +docker run -d --name enclosed --restart unless-stopped -p 8787:8787 -v /path/to/local/data:/app/.data ghcr.io/corentin-th/enclosed ``` ### Docker Compose