Skip to content

Commit 5e1c214

Browse files
authored
Merge pull request #21116 from dvdksn/fix-engine-sdk-option-types
engine: fix incorrect types in engine sdk overview example
2 parents ad800a5 + 443685d commit 5e1c214

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/reference/api/engine/sdk/_index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ import (
8484
"io"
8585
"os"
8686

87-
"github.com/docker/docker/api/types"
8887
"github.com/docker/docker/api/types/container"
8988
"github.com/docker/docker/api/types/image"
9089
"github.com/docker/docker/client"
@@ -113,7 +112,7 @@ func main() {
113112
panic(err)
114113
}
115114

116-
if err := cli.ContainerStart(ctx, resp.ID, types.ContainerStartOptions{}); err != nil {
115+
if err := cli.ContainerStart(ctx, resp.ID, container.StartOptions{}); err != nil {
117116
panic(err)
118117
}
119118

@@ -126,7 +125,7 @@ func main() {
126125
case <-statusCh:
127126
}
128127

129-
out, err := cli.ContainerLogs(ctx, resp.ID, types.ContainerLogsOptions{ShowStdout: true})
128+
out, err := cli.ContainerLogs(ctx, resp.ID, container.LogsOptions{ShowStdout: true})
130129
if err != nil {
131130
panic(err)
132131
}

0 commit comments

Comments
 (0)