mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
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:
parent
e53a545f04
commit
1c37096ba2
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue