From b7ace886f3a52ce0f4dd86b76f696a7e8e289cec Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Tue, 13 Aug 2024 20:40:34 -0600 Subject: [PATCH] fix(docker): add root docker to prevent registry delete in each restart/update dokploy server #326 --- apps/website/public/canary.sh | 1 + apps/website/public/feature.sh | 1 + apps/website/public/install.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/website/public/canary.sh b/apps/website/public/canary.sh index ba832736..3a9102b0 100644 --- a/apps/website/public/canary.sh +++ b/apps/website/public/canary.sh @@ -81,6 +81,7 @@ docker service create \ --network dokploy-network \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ --mount type=bind,source=/etc/dokploy,target=/etc/dokploy \ + --mount type=volume,source=dokploy-docker-config,target=/root/.docker \ --publish published=3000,target=3000,mode=host \ --update-parallelism 1 \ --update-order stop-first \ diff --git a/apps/website/public/feature.sh b/apps/website/public/feature.sh index 50955cc2..453da012 100644 --- a/apps/website/public/feature.sh +++ b/apps/website/public/feature.sh @@ -65,6 +65,7 @@ docker service create \ --network dokploy-network \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ --mount type=bind,source=/etc/dokploy,target=/etc/dokploy \ + --mount type=volume,source=dokploy-docker-config,target=/root/.docker \ --publish published=3000,target=3000,mode=host \ --update-parallelism 1 \ --update-order stop-first \ diff --git a/apps/website/public/install.sh b/apps/website/public/install.sh index 8dc80620..e68a59fd 100644 --- a/apps/website/public/install.sh +++ b/apps/website/public/install.sh @@ -81,6 +81,7 @@ docker service create \ --network dokploy-network \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ --mount type=bind,source=/etc/dokploy,target=/etc/dokploy \ + --mount type=volume,source=dokploy-docker-config,target=/root/.docker \ --publish published=3000,target=3000,mode=host \ --update-parallelism 1 \ --update-order stop-first \