docker / docs

Source repo for Docker's Documentation
https://docs.docker.com
Apache License 2.0
4.12k stars 7.12k forks source link

Error running the code for docker golang SDK #19827

Closed Animesh420 closed 1 month ago

Animesh420 commented 4 months ago

Is this a docs issue?

Type of issue

Other

Description

When I am copying and running the code for docker golang SDK from https://docs.docker.com/engine/api/sdk/examples/ I am getting errors such as github.com/docker/docker/client ../../../go/pkg/mod/github.com/docker/docker@v26.0.1+incompatible/client/errors.go:28:16: undefined: errors.As ../../../go/pkg/mod/github.com/docker/docker@v26.0.1+incompatible/client/request.go:127:14: undefined: errors.Is ../../../go/pkg/mod/github.com/docker/docker@v26.0.1+incompatible/client/request.go:129:14: undefined: errors.Is ../../../go/pkg/mod/github.com/docker/docker@v26.0.1+incompatible/client/request.go:153:13: undefined: errors.Is

Location

https://docs.docker.com/engine/api/sdk/examples/

Suggestion

I was going throughr, and I found t but not sure how to use it.

Animesh420 commented 4 months ago

Please checkhere

docker-robot[bot] commented 1 month ago

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] commented 1 week ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked