Monday, November 25, 2019

Docker installation setup for Windows


Step 1: Create a Docker account  Sign Up to create Docker Account

Step 2: Download Docker for Windows 10 using below link Docker exe for Windows

 Note: Required Login 

   Step 3: Login with your "Username" and "Password"
Step 4: 
Step 5: 
Step 5.1:

Step 6: 
Step 7: 


Step 8: 
Step 9:
Note: 1. The system will reboot automatically once you click on [Ok]
           2. Virtual Box will no longer work if Hyper-V enabled on your Machine

Step 9.1 You will get a shortcut on your Desktop of Docker. Click on that to run it.

Step 10:
Step 11: 
Step 12: 

Step 13:  Docker Settings


There are nine options given in the Settings section of the Docker, however, we will go through only the important ones only.
Shared Drives:
To access the local Windows 10 drives from containers, go to the Shared Drives and select the drive’s letter which you want to share and make them available for different containers installed using the Docker.
Advanced: 
As we know the Docker’s installed containers also run on the Virtualization platform of Windows 10 which is Hyper-V, hence, we can control the amount system resources available for the Docker engine which further assigned by it to the containers. We can manage CPU, RAM, SWAP  memory, Disk image location (don’t change it until & unless you know what you are doing) and Hard Disk image size.
Network
To let the Containers to communicate with each other the Docker will automatically create an internal Virtual Switch with a default range of IP i.e 10.0.75.0. If needed, you can change it to some other range.





Step 14: Switch Linux Containers to Windows containers or vice versa

In case you want to Switch the default Linux containers to Windows container then again go to taskbar click on Show hidden icon-> right click on the Docker icon-> Select the option “Switch to Windows containers“.


How to disable "Hyper-V" in Windows 10 

Step 1: Type Control Panel using the "Search" icon and click on [Programs and Features]
             or type "Turn Windows features on or off " and click on Enter 
                                                                              (OR)
Step 2:Un select the "Hyper-V" option to disable docker feature

Step 3: Applying changes in progress
 Step 4: Clic on [Restart Now] to Apply the changes


         

How to create Docker Hub Account

Register for a Docker ID

Your Docker ID becomes your user namespace for hosted Docker services and becomes your username on the Docker Forums.
  1. Enter a username that is also your Docker ID.
    Your Docker ID must be between 4 and 30 characters long, and can only contain numbers and lowercase letters.
  2. Enter a unique, valid email address.
  3. Enter a password between 6 and 128 characters long.
  4. Click Sign up.
    Docker sends a verification email to the address you provided.
  5. Click the link in the email to verify your address.
Note: You cannot log in with your Docker ID until you verify your email address.


Once Verification is done. Please try to login to Docker Hub with registered details
After successful login, click on "Create Repository" 
 Please provide the Repository name and other details and then click on the [Create] button



Verify the repository created successfully in Docker hub or not 
To push a new tag to this repository, use the below command

docker push krishnadasari610/testrepository:tagname

Sunday, November 24, 2019

how to install ubuntu 18.04 LTS in Oracle VirtualBox

Step 1: Click on New icon
Step 2: Type "ubuntu" and click on [Next]
Step 3: Select RAM size and click on [Next]
Step 4: Add a Virtual hard disk to a new machine from selecting the listed options
Step 5: Choose the hard disk file type as "VDI" from the options and click on [Next]
Step 6: Select the Storage on the physical hard disk as "Dynamically Allocated" and click on [Next]

Step 7:  Select the Hard disk size and click on [Create]
Step 8: Click on "ubuntu" on the left pane or click on "Start" ==> "Normal"
                                                                     or
Step 8.1 Right-click on "ubuntu" and select "Start" then click on "Normal"

Step 9: Select "ubuntu" iso image from the folder and click on [Open]

Step 9.1: Click on [Start]
Step 10: Select & click on  "Install Ubuntu"
Step 11: Select preferred language and click on [Continue]
Step 12: Select the "Noram Installation" and click on [Continue]
Step 13: Select "Erase disk and install Ubuntu"
Step 14: Click on [Continue]
Step 15: Select the "Time Zone" and click on [Continue]
Step 16: Provide the "Username", "Password" & "Re-Enter the password" and click on [Continue]
Step 17: Ubuntu Installation process

                                    
Step 18: Click on Restart button to enter into Ubuntu OS
Step 19: Click on [Enter] to direct the Username window
Step 20: click on [Ubuntu-Rest] or your username
Step 21:Enter password and press [Sign In] or [Enter]

Finally, Successfully completed ubuntu Installation in Oracle VirtualBox !!!
  

How to install and setup Kubernetes cluster using kOps in AWS environment

  Kops: Kops is also known as Kubernetes Operations, it is an open-source project which helps you to create, upgrade, destroy, and maintain ...