Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Connect to blumix docker container with putty

1.949 Aufrufe

Veröffentlicht am

Should I choose VM or Container? Sometime it makes not different to you.
If you are new to Docker. You can start from the way you familar with to access Docker.

Veröffentlicht in: Technologie
  • Loggen Sie sich ein, um Kommentare anzuzeigen.

Connect to blumix docker container with putty

  1. 1. © 2014 IBM Corporation Connect to Bluemix Docker Container with Putty Joseph Chang Senior IT Specialist IBM Cloud Group Document number
  2. 2. © 2014 IBM Corporation2 Take me to Bluemix Click Here If you are new to Bluemix Docker Container, please start from here: https://www.ng.bluemix.net/docs/containers/container_index.html https://www.ng.bluemix.net/docs/containers/container_optional.html
  3. 3. © 2014 IBM Corporation Create a Bluemix Container 3
  4. 4. © 2014 IBM Corporation Create a Docker Container from Docker Image 4 To get a container. Click here to start. The out-of-box Bluemix Docker Image includes built-in SSH daemon. So you can connect it with Putty just like using a VM.
  5. 5. © 2014 IBM Corporation Fill in the container name and IP 5 1. Fill in Container name 2. Select the size 3. Assign an Public IP 4. Expose public port. (22 for ssh, 9080 for websphere liberty) 5. Click on Advanced Options.
  6. 6. © 2014 IBM Corporation Fill in the SSH key 6 Fill in your SSH public key here. If you don’t’ have the key , refer the next page to get one.
  7. 7. © 2014 IBM Corporation Generate SSH Key 7 • Launch a windows command prompt then use ssh-keygen to generate the key. • You can enter a passphrase or leave it blank.
  8. 8. © 2014 IBM Corporation Generate SSH Key 8 • The key has been generated. • Check the generated key.
  9. 9. © 2014 IBM Corporation Fill in the SSH key with cloud.key.pub 9 Copy the public to ..
  10. 10. © 2014 IBM Corporation Convert the private key with PuttyGen 10 1. Load cloud.key 2. Save as cloud.key.ppk
  11. 11. © 2014 IBM Corporation Create the container 11 Now click CREATE
  12. 12. © 2014 IBM Corporation Wait for container created 12 The container should be created in less the 1 minutes. Check if the public IP is shown then let’s connect to it.
  13. 13. © 2014 IBM Corporation Ping the container with the public IP 13 Before connect with Putty, ping it to check if the server is alive.
  14. 14. © 2014 IBM Corporation Connect to Bluemix Container with Putty 14
  15. 15. © 2014 IBM Corporation Fill the public IP 15
  16. 16. © 2014 IBM Corporation Fill in Auto-login username as “root” 16
  17. 17. © 2014 IBM Corporation Import the cloud.key.ppk (refer to P.10 to see how to generate the key) 17 Open the terminal now !!
  18. 18. © 2014 IBM Corporation Congratulation !! You have successfully login to container. 18 Feel like using a VM !!
  19. 19. © 2014 IBM Corporation ls 19
  20. 20. © 2014 IBM Corporation df -k 20
  21. 21. © 2014 IBM Corporation ps -ef 21
  22. 22. © 2014 IBM Corporation ip addr 22
  23. 23. © 2014 IBM Corporation top 23
  24. 24. © 2014 IBM Corporation Check the Resource Usage 24
  25. 25. © 2014 IBM Corporation Cost estimation 25 What’s the difference? It’s cheaper.
  26. 26. © 2014 IBM Corporation26 More reasons to use Docker containersMultiplicityofStacksMultiplicityofhardware environments QA server Development VM Contributor’s laptop Customer Data Center Production Cluster Public Cloud Static website User DB Analytics DBQueueWeb frontend CanImigratesmoothly andquickly …that can be manipulated using standard operations and run consistently on virtually any hardware platform An engine that enables any payload to be encapsulated as a lightweight, portable, self-sufficient container… Doservicesandapps interactappropriately? What’s the next? Start from the way you familiar. Explore the nice features of Docker Container.
  27. 27. © 2014 IBM Corporation Thank you 27 Take me to Bluemix Click Here

×