mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 21:15:17 +00:00
Merge pull request #3188 from fir4tozden/fix/remove-volume-cleanup-from-cleanupall
fix: remove volume cleanup from cleanupAll()
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import { readdirSync } from "node:fs";
|
import { readdirSync } from "node:fs";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { docker } from "@dokploy/server/constants";
|
import { docker } from "@dokploy/server/constants";
|
||||||
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
|
|
||||||
import {
|
import {
|
||||||
execAsync,
|
execAsync,
|
||||||
execAsyncRemote,
|
execAsyncRemote,
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ export const cleanupBuilders = async (serverId?: string) => {
|
|||||||
|
|
||||||
export const cleanupSystem = async (serverId?: string) => {
|
export const cleanupSystem = async (serverId?: string) => {
|
||||||
try {
|
try {
|
||||||
const command = "docker system prune --all --volumes --force";
|
const command = "docker system prune --all --force";
|
||||||
|
|
||||||
if (serverId) {
|
if (serverId) {
|
||||||
await execAsyncRemote(serverId, dockerSafeExec(command));
|
await execAsyncRemote(serverId, dockerSafeExec(command));
|
||||||
@@ -252,7 +252,6 @@ export const cleanupSystem = async (serverId?: string) => {
|
|||||||
export const cleanupAll = async (serverId?: string) => {
|
export const cleanupAll = async (serverId?: string) => {
|
||||||
await cleanupContainers(serverId);
|
await cleanupContainers(serverId);
|
||||||
await cleanupImages(serverId);
|
await cleanupImages(serverId);
|
||||||
await cleanupVolumes(serverId);
|
|
||||||
await cleanupBuilders(serverId);
|
await cleanupBuilders(serverId);
|
||||||
await cleanupSystem(serverId);
|
await cleanupSystem(serverId);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user