Attaching to a container
Attach to the DSE container and run commands or monitor the system.
Use the docker exec -it <container_name>
command to attach to a container
and run DataStax Enterprise (DSE) tools and other operations.
Opening an interactive bash shell
If the container is running in the background (using the -d
option), use
the following command to open an interactive bash shell:
docker exec -it <container_name> bash
To exit the shell without stopping the container, type exit.
Opening an interactive CQL shell (cqlsh)
Use the following command to open the cqlsh prompt.
docker exec -it <container_name> cqlsh
To exit the shell without stopping the container, use Ctrl + P + Q.
Viewing logs
View DSE logs using the docker log command.
docker logs my-dse
Using DSE tools
Use the docker exec
command to run other tools. For example:
docker exec -it my-dse nodetool status
See the DSE documentation for further information.