From 7f670e16afa789f8d6e4825517b2aeea6e635fc2 Mon Sep 17 00:00:00 2001 From: vladaurosh <47857324+vladaurosh@users.noreply.github.com> Date: Sun, 3 Mar 2024 04:01:55 +0000 Subject: [PATCH] compose pull skip local images Updating compose pull command with a switch that skips local images. Otherwise error message is: Error response from daemon: pull access denied for , repository does not exist or may require 'docker login': denied: requested access to the resource is denied --- backend/stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/stack.ts b/backend/stack.ts index fbce500..7f18297 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -445,7 +445,7 @@ export class Stack { async update(socket: DockgeSocket) { const terminalName = getComposeTerminalName(socket.endpoint, this.name); - let exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "pull" ], this.path); + let exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "pull", "--policy", "missing" ], this.path); if (exitCode !== 0) { throw new Error("Failed to pull, please check the terminal output for more information."); }