Docker Commands
- docker ps - Shows a list of the current running containers
- docker exec -it <CONTAINER_ID> bash - run bash inside the docker (Also aliased as dlog)
- docker stop <CONTAINER_ID> - stop the container with the wanted id
- docker rm <CONTAINER_ID> - removes a stopped container with the wanted id
- docker images - Shows a list of the current images found on the
- docker rmi <IMAGE_ID> - removes the image with the wanted id from the machine
- cqlsh -u asdc_user -p 'Aa1234%^!' - Run this commands from within the cassandra docker to use cqlsh
Vagrant Commands
- /data/scripts/docker_run.sh -r 1.1-STAGING-latest latest - Downloads and deploys the latest dockers from the nexus to the environment (Also aliased as drun)
- /data/scripts/docker_run.sh -r 1.1-STAGING-latest -l - Deploy dockers from the local images found on the vagrant (Also aliased as drun)
- /data/scripts/docker_health.sh sh - Requests healthcheck from FE & BE (Also aliased as health)
- Logs are under: can be found in /data/logs
...
/data/logs/BE
/data/logs/FE
- directory. BE logs under the BE folder and FE logs under the FE
- Docker logs <CONTAINER_ID> - Use this command Command to see display the logs of a specific docker
docker exec -it <CONTAINER ID> bash
To run bash in desired docker
To run cqlsh in Cassandra docker (first run bash in Cassandra docker)the wanted containercqlsh -u asdc_user -p 'Aa1234%^!'