Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the demo code #20530

Closed
wants to merge 2 commits into from
Closed

Conversation

elliotchenzichang
Copy link

@elliotchenzichang elliotchenzichang commented Aug 3, 2024

I ran a demo following the code marked in the file, but found that the types.StartOptions has been deprecated, so help to update the demo code.

Description

ran the code in my local
image

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

I ran a demo following the code marked in the file, but found that the types.StartOptions has been deprecated, so help to update the demo code.
@github-actions github-actions bot added area/engine Issue affects Docker engine/daemon area/api Relates to Docker API docs labels Aug 3, 2024
Copy link

netlify bot commented Aug 3, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 900425b
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66b434d3e373df0008728a74
😎 Deploy Preview https://deploy-preview-20530--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.

}

stdcopy.StdCopy(os.Stdout, os.Stderr, out)
ctx := context.Background()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For others reviewing; the large number of lines changes is due to spaces -> tabs. Go uses tabs for indenting, but let me double-check with @dvdksn if there perhaps was a reason to use spaces for the docs (maybe for formatting reasons)?

To review the changes with whitespace changes hidden, add ?w=1 to the URL; https://github.com/docker/docs/pull/20530/files?w=1

content/engine/api/sdk/_index.md Show resolved Hide resolved
@docker-robot
Copy link

docker-robot bot commented Nov 6, 2024

Thanks for the pull request. We'd like to make our product docs better, but haven’t been able to review all the suggestions.
As our docs have also diverged, we do not have the bandwidth to review and rebase old pull requests.

If the updates are still relevant, review our contribution guidelines and rebase your pull request against the latest version of the docs, then mark it as fresh with a /remove-lifecycle stale comment.
If not, this pull request will be closed in 30 days. This helps our maintainers focus on the active pull requests.

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

/lifecycle stale

Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, this PR went below my radar for some reason. It looks like this change was already implemented in #21116

As for tabs vs spaces, I think it's just a formatter thing - according to the commonmark spec, tabs and spaces are both allowed. But formatters might just convert tabs to 4 spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Relates to Docker API docs area/engine Issue affects Docker engine/daemon lifecycle/stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants