-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Implement Create Container #13758
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
base: feature/wsl-for-apps
Are you sure you want to change the base?
Implement Create Container #13758
Changes from 1 commit
1220fbe
0920c52
3d5fa8b
3a8a669
b8c5b8c
cff1cd2
29971ac
9c18826
cdf7c46
3b5c028
2a4f8d0
9dd34f2
292707e
0eda07f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,6 +18,14 @@ Module Name: | |||||
|
|
||||||
| using wsl::windows::service::wsla::WSLAContainer; | ||||||
|
|
||||||
| const std::string nerdctlPath = "/usr/bin/nerdctl"; | ||||||
|
|
||||||
| // Constants for required default arguments for "nerdctl run..." | ||||||
| static std::vector<std::string> defaultNerdctlRunArgs{ | ||||||
| "--pull=never", | ||||||
| "--host=net", // TODO: default for now, change later | ||||||
|
||||||
| "--host=net", // TODO: default for now, change later | |
| "--network=host", // Use correct nerdctl option for host networking |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
| std::vector<std::string> WSLAContainer::prepareNerdctlRunCommand(const WSLA_CONTAINER_OPTIONS& options) | |
| std::vector<std::string> WSLAContainer::PrepareNerdctlRunCommand(const WSLA_CONTAINER_OPTIONS& options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: and similar for below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ended up using a constexpr const char*, since that makes it easier to add to the command line vectors