Closed icecloud12 closed 4 months ago
hello everyone is me again it was just a very beginner issue FROM
port_binding.insert(format!("{}",container_port.to_string()), Some(vec![PortBinding {
TO
port_binding.insert(format!("{}/tcp",container_port.to_string()), Some(vec![PortBinding {
//external port
host_port: Some(local_port.to_string()),
//localhost
host_ip: Some("0.0.0.0".to_string())
}]));
let host_config = HostConfig {
port_bindings: Some(port_binding),
..Default::default()
};
not sure if i should be doing this? I mean it is working but not sure if this was the intended answer
Hey everyone noobish question,
having trouble in setting the container properly that would listen on the ports
I hope someone could help. Thanks