mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 22:39:01 +00:00
bugfix: set hostname
Setting hostname according to the spec. Fixes: #6247 Signed-off-by: Yushuo <y-shuo@linux.alibaba.com>
This commit is contained in:
@@ -216,7 +216,7 @@ impl Sandbox for VirtSandbox {
|
||||
let agent_config = self.agent.agent_config().await;
|
||||
let kernel_modules = KernelModule::set_kernel_modules(agent_config.kernel_modules)?;
|
||||
let req = agent::CreateSandboxRequest {
|
||||
hostname: "".to_string(),
|
||||
hostname: spec.hostname.clone(),
|
||||
dns,
|
||||
storages: self
|
||||
.resource_manager
|
||||
|
Reference in New Issue
Block a user