From b9930ab83db00d8b97690468d76344319b42cc2e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 7 Jan 2023 21:55:53 +0100 Subject: [PATCH] Use absolute image to account for custom registry --- lib/mrsk/commands/app.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mrsk/commands/app.rb b/lib/mrsk/commands/app.rb index c8303013..376918ff 100644 --- a/lib/mrsk/commands/app.rb +++ b/lib/mrsk/commands/app.rb @@ -1,15 +1,15 @@ class Mrsk::Commands::App < Mrsk::Commands::Base def push # TODO: Run 'docker buildx create --use' when needed - "docker buildx build --push --platform=linux/amd64,linux/arm64 -t #{config.image_with_version} ." + "docker buildx build --push --platform=linux/amd64,linux/arm64 -t #{config.absolute_image} ." end def pull - "docker pull #{config.image_with_version}" + "docker pull #{config.absolute_image}" end def start - "docker run -d --rm --name #{config.service_with_version} #{config.envs} #{config.labels} #{config.image_with_version}" + "docker run -d --rm --name #{config.service_with_version} #{config.envs} #{config.labels} #{config.absolute_image}" end def stop