Skip to content

Commit 59fbf35

Browse files
committed
feat: bind /etc/hosts to container
Bind /etc/hosts to the container to facilitate network debugging.
1 parent 6e99856 commit 59fbf35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libs/oci-cfg-generators/src/linglong/oci-cfg-generators/container_cfg_builder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ ContainerCfgBuilder &ContainerCfgBuilder::bindHostStatics() noexcept
365365
"/etc/localtime",
366366
"/etc/resolv.conf",
367367
"/etc/timezone",
368+
"/etc/hosts"
368369
};
369370

370371
hostStaticsMount = std::vector<Mount>{};

0 commit comments

Comments
 (0)