mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +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:
parent
e6e719699f
commit
f4938c0d90
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user