hello, I am new to scylla (and docker so maybe the problem is with my docker command )
I am trying to connect from my rust code to the scylla node that I run from docker
my docker command is docker run --name some-scylla -d scylladb/scylla --smp 1
and I simply have this fn to connect
/// Connect to a Scylla node
pub async fn connect_scylla_node(node: SocketAddr) -> Arc<Session> {
let client = SessionBuilder::new()
.known_node_addr(node)
// .compression(Some(scylla::frame::Compression::Lz4))
// .user("cassandra", "cassandra")
.build()
.await
.unwrap();
Arc::new(client)
}
and it giving me always this error
called `Result::unwrap()` on an `Err` value: ConnectionPoolError(Broken { last_connection_error: ConnectTimeout })
but now I am wondering why I couldn’t connect to the private ip I got from the docker vm ? it in my network .
it seems I need use the docker port mapping .