fix: split string Entrypoint by space

Signed-off-by: Florian Bezannier <florian.bezannier@hotmail.fr>
This commit is contained in:
Florian Bezannier 2024-02-28 19:41:46 +01:00
parent 90e6478cf8
commit 77bcf233eb
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package define
import (
"encoding/json"
"fmt"
"strings"
"time"
"github.com/containers/image/v5/manifest"
@ -106,7 +107,7 @@ func (insp *InspectContainerConfig) UnmarshalJSON(data []byte) error {
switch entrypoint := aux.Entrypoint.(type) {
case string:
insp.Entrypoint = []string{entrypoint}
insp.Entrypoint = strings.Split(entrypoint, " ")
case []string:
insp.Entrypoint = entrypoint
case []interface{}: