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

How to use the detach option when calling CreateContainer? #1009

Closed
ironGYII opened this issue Sep 2, 2023 · 1 comment
Closed

How to use the detach option when calling CreateContainer? #1009

ironGYII opened this issue Sep 2, 2023 · 1 comment
Labels

Comments

@ironGYII
Copy link

ironGYII commented Sep 2, 2023

I want use --detach option when create container, but I didn't found the option in CreateContainerOptions. Is this feature supported? Looking forward to your response, thank you.

@fsouza
Copy link
Owner

fsouza commented Sep 9, 2023

You don't need to do anything special for --detach. There are special steps for attaching, but if you want to create a detached container, you can just call CreateContainer followed by StartContainer and call it a day.

@fsouza fsouza closed this as completed Sep 9, 2023
@fsouza fsouza added the question label Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants