Port forwarding maps a port on the local machine to a port inside a Docker container. It lets a local application reach a service such as ScyllaDB’s CQL endpoint. section 2.1.1 section 10.2.1
Containers on a shared Docker network can communicate through hostnames, but local access requires forwarded ports. A multi-node setup needs different host ports for each node, which conflicts with a Scylla driver that assumes one port; a single-node cluster is simpler for local development. section 10.2.1
Forwarding ScyllaDB ports
The mapping -p 9241:9042 forwards local port 9241 to container port 9042. A local application can therefore use port 9241 while ScyllaDB continues listening on its container CQL port. section 2.1.1
$ docker run --name scylla-1 --hostname scylla-1 \ --network scylla-network --detach -p 9241:9042 \ -p 19241:9042 scylladb/scylla:5.4 --reactor-backend=epoll
Shows a runnable Docker command forwarding two local ports to ScyllaDB container ports. section 2.1.1




