How to ssh into docker container

To ssh  into existing docker container

  1. make sure that container is running by running at your host
    docker ps
  2. and check that your container is the result list. Lets say it’s name is local-rabbitmq:
    run docker exec -it local-rabbitmq-1 bash
  • Done!