Start container using image-name:tag not image.id

Related to https://github.com/redhat-developer/podman-desktop-sandbox-ext/issues/39.

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
This commit is contained in:
Denis Golovin 2023-05-19 22:15:47 -07:00 committed by Florent BENOIT
parent e53a545f04
commit 1c37096ba2
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ async function startContainer() {
ExposedPorts[port] = {};
});
const Image = image.id;
const Image = image.tag ? `${image.name}:${image.tag}` : image.id;
const HostConfig = {
PortBindings,

View file

@ -191,7 +191,7 @@ async function startContainer() {
// no value, use empty string
.map(env => `${env.key}=${env.value || ''}`);
const Image = image.id;
const Image = image.tag ? `${image.name}:${image.tag}` : image.id;
const RestartPolicy: { Name: string; MaximumRetryCount?: number } = {
Name: restartPolicyName,