Skip to content

Instantly share code, notes, and snippets.

@Kotauror
Created May 29, 2019 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kotauror/0b158462100a16b0f9f058a0bd56327d to your computer and use it in GitHub Desktop.
Save Kotauror/0b158462100a16b0f9f058a0bd56327d to your computer and use it in GitHub Desktop.
connecting to docker in EC2
  1. Connect to the ec2 instance: eb ssh name-of-instance --profile name-of-profile (as in the .ssh file)
  2. docker ps - to list the dockers
  3. take a name of docker container
  4. docker exec -it name-of-container /bin/bash
  5. cd craft/storage/logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment