Closed groche97 closed 1 year ago
Sorry I'm not using the correct EndpointSettings correctly, works with:
let endpoint = EndpointSettings { ipam_config: Some(EndpointIpamConfig{ ipv4_address: ip.clone(), ..Default::default() }), ..Default::default() };
instead of:
let endpoint = EndpointSettings { ip_address: ip.clone(), ..Default::default() };
I'm trying to create a container with a specified ip, but apparently the configuration does not apply
` let docker = match Docker::connect_with_local_defaults() { Ok(d) => d, Err(e) => panic!("error:{}",e.to_string()), };
This is my code and run perfectly, but not use the specified ip int he new container