Connecting to running docker image AWS Amazon


  1. open SSH port 22:
    1. select running instance : click Services -> EC2 -> "Running Instances". 
    2. select instance and click on link at "Security groups"
    3. click tab "Inbound"
    4. "Edit" -> "Add rule" : Insert port 22 for source anywhere, TCP and Save
  2. select running instance : click Services -> EC2 -> "Running Instances"
  3. click "Running Instances" and select it
  4. to connect click "Connect"
    1. to connect over explorer click "A Java SSH ..."  -> IE only
    2. to connect using SSH tool (Putty) follow rules
      1. copy instance "Public DNS (IPv4)" address
      2. open Putty:
        1. Host: ec2-user@"Public DNS (IPv4)" address
        2. Port: 22
        3. Connection -> SSH -> Auth -> Private key : locate your private key (must be in Services->EC2->Key Pairs)
        4. once you are in you have all docker commands.
          $ docker ps (running containers)
          $ docker exec -ti conteinerid /bin/bash (connect to root) 


Comments

Popular posts from this blog

Deploy docker image to Amazon AWS (free for 12months) in half an hour for beginners

Running docker image on Amazon AWS