diff options
author | Milivoje Legenovic <m.legenovic@gmail.com> | 2020-11-19 09:55:36 +0100 |
---|---|---|
committer | Milivoje Legenovic <m.legenovic@gmail.com> | 2020-11-23 17:45:24 +0100 |
commit | 6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9 (patch) | |
tree | c636654f50684be8ad2ddb5b68767f5666725a9f /pkg/api/handlers/compat/containers.go | |
parent | 5292d5a7b85f9d2ae0b2a3734f8ae4baeba80f11 (diff) | |
download | podman-6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9.tar.gz podman-6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9.tar.bz2 podman-6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9.zip |
[WIP] Docker compat API fixes
These are the first fixes that are needed for development environments like
Eclipse or IntelliJ that have Docker plug-ins and use the Docker API to speak
with container engine (#7857)
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
Diffstat (limited to 'pkg/api/handlers/compat/containers.go')
-rw-r--r-- | pkg/api/handlers/compat/containers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go index 0ee96b855..5886455e7 100644 --- a/pkg/api/handlers/compat/containers.go +++ b/pkg/api/handlers/compat/containers.go @@ -321,8 +321,8 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON, cb := types.ContainerJSONBase{ ID: l.ID(), Created: l.CreatedTime().Format(time.RFC3339Nano), - Path: "", - Args: nil, + Path: inspect.Path, + Args: inspect.Args, State: &state, Image: imageName, ResolvConfPath: inspect.ResolvConfPath, @@ -331,7 +331,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON, LogPath: l.LogPath(), Node: nil, Name: fmt.Sprintf("/%s", l.Name()), - RestartCount: 0, + RestartCount: int(inspect.RestartCount), Driver: inspect.Driver, Platform: "linux", MountLabel: inspect.MountLabel, |