docker / docs

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

Fix deprecated types.ImagePullOptions usage and replace with image.PullOptions #20316

Closed sarrocks1 closed 5 days ago

sarrocks1 commented 5 days ago

Description

While going through golang docker sdk docs, I found that as per https://github.com/moby/moby/blob/v26.0.0/api/types/types_deprecated.go#L7-L35 , the types.ImagePullOptions has been deprecated and on usage throws undefined: types.ImagePullOptions error as below:

Screenshot 2024-06-28 at 12 34 29 AM

Fixed the issue by using images.PullOptions which is the correct replacement as mentioned by the same docs above.

Related issues or tickets

Reviews

netlify[bot] commented 5 days ago

Deploy Preview for docsdocker ready!

Name Link
Latest commit be1d7968cd10a46e76b4ea4e7a72a0d72d9d7409
Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/667dbc963ef2ce000807a367
Deploy Preview https://deploy-preview-20316--docsdocker.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.