Skip to content

Commit 5360df7

Browse files
authored
Merge pull request #3188 from fir4tozden/fix/remove-volume-cleanup-from-cleanupall
fix: remove volume cleanup from cleanupAll()
2 parents f84c659 + fec4daa commit 5360df7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/server/src/services/settings.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readdirSync } from "node:fs";
22
import { join } from "node:path";
33
import { docker } from "@dokploy/server/constants";
4-
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
54
import {
65
execAsync,
76
execAsyncRemote,

packages/server/src/utils/docker/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export const cleanupBuilders = async (serverId?: string) => {
235235

236236
export const cleanupSystem = async (serverId?: string) => {
237237
try {
238-
const command = "docker system prune --all --volumes --force";
238+
const command = "docker system prune --all --force";
239239

240240
if (serverId) {
241241
await execAsyncRemote(serverId, dockerSafeExec(command));
@@ -252,7 +252,6 @@ export const cleanupSystem = async (serverId?: string) => {
252252
export const cleanupAll = async (serverId?: string) => {
253253
await cleanupContainers(serverId);
254254
await cleanupImages(serverId);
255-
await cleanupVolumes(serverId);
256255
await cleanupBuilders(serverId);
257256
await cleanupSystem(serverId);
258257
};

0 commit comments

Comments
 (0)