mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Exec inspect field should be "ID" not "ExecID"
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit cc993a9cbf
)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
5f6d6f3f22
commit
1b8e9a131c
2 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,7 @@ type ContainerCommitOptions struct {
|
||||||
|
|
||||||
// ContainerExecInspect holds information returned by exec inspect.
|
// ContainerExecInspect holds information returned by exec inspect.
|
||||||
type ContainerExecInspect struct {
|
type ContainerExecInspect struct {
|
||||||
ExecID string
|
ExecID string `json:"ID"`
|
||||||
ContainerID string
|
ContainerID string
|
||||||
Running bool
|
Running bool
|
||||||
ExitCode int
|
ExitCode int
|
||||||
|
|
|
@ -102,6 +102,10 @@ func TestExec(t *testing.T) {
|
||||||
)
|
)
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
|
|
||||||
|
inspect, err := client.ContainerExecInspect(ctx, id.ID)
|
||||||
|
assert.NilError(t, err)
|
||||||
|
assert.Check(t, is.Equal(inspect.ExecID, id.ID))
|
||||||
|
|
||||||
resp, err := client.ContainerExecAttach(ctx, id.ID,
|
resp, err := client.ContainerExecAttach(ctx, id.ID,
|
||||||
types.ExecStartCheck{
|
types.ExecStartCheck{
|
||||||
Detach: false,
|
Detach: false,
|
||||||
|
|
Loading…
Reference in a new issue