File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/edge/infra/client/manager/src/actor Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,12 @@ fn mounts(opts: &ConfigOpts) -> Result<serde_json::Value> {
252
252
"source" : opts. actor_path. join( "resolv.conf" ) . to_str( ) . context( "resolv.conf path" ) ?,
253
253
"options" : [ "rbind" , "rprivate" ]
254
254
} ,
255
+ {
256
+ "destination" : "/etc/hosts" ,
257
+ "type" : "bind" ,
258
+ "source" : opts. actor_path. join( "hosts" ) . to_str( ) . context( "hosts path" ) ?,
259
+ "options" : [ "rbind" , "rprivate" ]
260
+ } ,
255
261
] ) )
256
262
}
257
263
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ impl Actor {
258
258
tokio:: try_join!(
259
259
fs:: write( oci_bundle_config_path, config_json) ,
260
260
fs:: write( actor_path. join( "resolv.conf" ) , resolv_conf) ,
261
- fs:: write( fs_path . join( "hosts" ) , hosts_content)
261
+ fs:: write( actor_path . join( "hosts" ) , hosts_content)
262
262
) ?;
263
263
264
264
let duration = timer. elapsed ( ) . as_secs_f64 ( ) ;
You can’t perform that action at this time.
0 commit comments