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
This commit is contained in:
vladaurosh 2024-03-03 04:01:55 +00:00 committed by GitHub
parent c7ea2f9ee9
commit 7f670e16af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.");
}