Compare commits

...

2 commits

Author SHA1 Message Date
vladaurosh
db71bf2e62
Merge 7f670e16af into a65a9f5549 2024-12-31 16:09:28 +00:00
vladaurosh
7f670e16af
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 <repo>, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
2024-03-03 04:01:55 +00:00

View file

@ -445,7 +445,7 @@ export class Stack {
async update(socket: DockgeSocket) { async update(socket: DockgeSocket) {
const terminalName = getComposeTerminalName(socket.endpoint, this.name); 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) { if (exitCode !== 0) {
throw new Error("Failed to pull, please check the terminal output for more information."); throw new Error("Failed to pull, please check the terminal output for more information.");
} }