Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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 start <CONTAINER_ID> - start 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_health.sh        - Requests healthcheck from FE & BE Logs are under: run.sh -r 1.1-STAGING-latest  -l - Deploy dockers from the local images found on the vagrant (Also aliased as drun)
  • For more flags to use with the docker_run.sh script please refer to the following guide: SDC docker_run Script Usage (Deprecated since Guilin)
  • /data/

...

  • scripts/simulator_docker_run.sh -r 1.1-STAGING-latest - Deploying the local webseal simulator on the vagrant
  • /data/

...

 

  • scripts/docker_health.sh - Requests healthcheck from FE & BE (Also aliased as health)
  • 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

    cqlsh -u asdc_user -p 'Aa1234%^!'

    To run cqlsh in Cassandra docker (first run bash in Cassandra docker)the wanted container
  • Logs can be found in /data/logs directory. BE logs under the BE folder and FE logs under the FE