This commit is contained in:
Blue 2025-12-04 13:01:30 -08:00
parent c3b561c35c
commit a592bed469

View File

@ -21,11 +21,10 @@ using wsl::windows::service::wsla::WSLAContainer;
constexpr const char* nerdctlPath = "/usr/bin/nerdctl"; constexpr const char* nerdctlPath = "/usr/bin/nerdctl";
// Constants for required default arguments for "nerdctl run..." // Constants for required default arguments for "nerdctl run..."
static std::vector<std::string> defaultNerdctlRunArgs{ static std::vector<std::string> defaultNerdctlRunArgs{//"--pull=never", // TODO: Uncomment once PullImage() is implemented.
//"--pull=never", // TODO: Uncomment once PullImage() is implemented. "--net=host", // TODO: default for now, change later
"--net=host", // TODO: default for now, change later "--ulimit",
"--ulimit", "nofile=65536:65536"};
"nofile=65536:65536"};
WSLAContainer::WSLAContainer(WSLAVirtualMachine* parentVM, ServiceRunningProcess&& containerProcess, const char* name, const char* image) : WSLAContainer::WSLAContainer(WSLAVirtualMachine* parentVM, ServiceRunningProcess&& containerProcess, const char* name, const char* image) :
m_parentVM(parentVM), m_containerProcess(std::move(containerProcess)), m_name(name), m_image(image) m_parentVM(parentVM), m_containerProcess(std::move(containerProcess)), m_name(name), m_image(image)