1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #40475 from cpuguy83/fix_client_exec_type_id

Exec inspect field should be "ID" not "ExecID"
This commit is contained in:
Akihiro Suda 2020-02-26 19:11:33 +09:00 committed by GitHub
commit 26e6708ccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -50,7 +50,7 @@ type ContainerCommitOptions struct {
// ContainerExecInspect holds information returned by exec inspect.
type ContainerExecInspect struct {
ExecID string
ExecID string `json:"ID"`
ContainerID string
Running bool
ExitCode int

View file

@ -102,6 +102,10 @@ func TestExec(t *testing.T) {
)
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,
types.ExecStartCheck{
Detach: false,