Your email address will not be published. Required fields are marked *
How to Install Docker on Windows, Mac, & Linux: A Step-By-Step Guide
Docker is intended to benefit developers and system managers and makes it a component of a number of toolchains for DevOps (developers + activities). This implies that designers can concentrate their attention on writing code without worrying about the scheme that it will eventually run on. It also gives them the opportunity to take advantage of one of the thousands of programs intended to operate as part of their implementation in a container at Docker. Docker offers flexibility for the operational team and decreases possibly a smaller overhead footprint and lower overhead the number of devices required.Let’s now deep dive into installation steps for docker on different platforms.Install Docker on Windows The community version of Docker for Microsoft Windows is Docker Desktop for Windows.Download from Docker Hub. System RequirementsThe software and hardware requirements need to operate Client Hyper-V on Windows 10 effectively are:Software Requirements:Windows-10 64-bit system requirements: Pro, Enterprise or EducationWindows characteristics of Hyper-V and Containers must be activatedHardware Requirements:The support for virtualization of hardware-level Client Hyper-V in BIOS settings must be allowed with the 64-bit processor with second-level address translation (SLAT). Minimum 4 GB RAMTo run Docker Desktop, Microsoft Hyper-V is needed. The Windows installer Docker Desktop allows Hyper-V and restarts your computer if needed. VirtualBox no longer operates when Hyper-V is activated. All VirtualBox VM images are however maintained.The DOCKer VMs (including the default one generated during the installation of the Toolbox) are no longer started. VirtualBox The Docker desktop can not use these VMs side-by-side. You can still handle remote VMs using the docker.What is included in Installation?The installation of Docker Desktop consists of the Docker Engine, Docker CLI, Docker Compose, Docker Machine, and Kitematic. Docker Desktop containers and images are shared among all user accounts on the machines where they are installed. All Windows accounts are building and running containers using the same VM. Nested virtualization situations, such as operating Docker Desktop with VMWare or Parallels, might operate. See Running Docker Desktop in nested situations for more data.Installation steps To run the installer, double-click Docker Desktop Installer.exe to install Docker Desktop on Windows. The installer can be accessed from Docker Hub if you have not previously downloaded (Docker Desktop Installer.exe). It typically downloads to your download directory or can be executed at the bottom of your internet browser from the latest download bar.Follow the installation wizard directions for licensing, authorizing the installer and proceeding with the installation. If advised, authorize your system password during the installation of the Docker Desktop Installer. The networking elements, connections to the applications of Docker and the management of Hyper-V VMs need to be privately accessible.Click Finish in the setup window and launch the application Docker Desktop.Start Docker DesktopAfter installation, Docker Desktop will not begin automatically. Search for Docker and select the search outcomes for Docker Desktop.If the whale icon remains stable in the status bar, Docker Desktop is up and running and can be accessed from any terminal window.You also get a pop-up message with the next steps, as well as a link to this documentation, after the Docker Desktop app is installed.When you're done initializing, click on the whale icon in the Notifications region and pick About Docker to check that your recent version is available.Install Docker on MacThe very first step is to download the Docker Toolbox for Mac. Get the downloadable link- Download from Docker HubSystem RequirementDocker Desktop for Mac starts only when all these requirements can be met:Mac hardware must be 2010 models or newer, including Extended Page Tables (EPT) and Unrestricted Mode, with Intel hardware to provide memory management unit (MMU) virtualization. This support can be checked to see if the following command is being run on your computer: sysctl kern.hv_supportmacOS Sierra 10.12 and newer versions of macOS are endorsed. The upgrade to the newest version of macOS is recommended.VirtualBox (incompatible with Docker Desktop on Mac) before version 4.3.30 must not be installed. It's alright if you have a newer VirtualBox version installed.Installation stepsDouble-click Docker.dmg and drag the whale Moby to the application folder to open the installer.In the Applications directory, double-click Docker.app to launch Docker. In the instance below, the applications folder is in the Grid view modeYou are led to allow Docker.app with your system password after starting it. Privileged access is required to install Docker app connections and networking elements.The whale in the top status bar shows that Docker runs from a terminal and is available.You will also get a success message, with the next steps and a link to this documentation, if you have just installed the app. To reject this pop-up, click on the whale in the status bar.To get Preferences and other options, click on the whale (whale menu).To check that you have the latest version, select About Docker.Notes:Getting started provides an overview of Docker Desktop for Mac, basic Docker command examples, how to get help or give feedback, and links to all topics in the Docker Desktop for Mac guide.Troubleshooting describes common problems, workarounds, how to run and submit diagnostics, and submit issues.Install Docker on LinuxLet’s use a Ubuntu example to begin installing Docker. If you don't already have it, you can use Oracle Virtual Box to install a virtual Linux example. A straightforward Ubuntu server mounted on the Oracle Virtual Box is shown in the following screenshot. There is an OS user called a demo defined with full root access to the scheme:Step 1 − We must first make sure you have the correct version of the Linux kernel running before installing Docker. Only version 3.8 or greater is intended for Docker on Linux kernel. We can do this with the instructions below.Uname: The system data for the Linux system is returned by this method. This method will return the kernel name, kernel release, kernel version information on the Linux system.uname -aa − Used for ensuring the return of the system data.Step 2 − You need to install packages from the internet onto the Linux system via the following command, the recent packages can be updated to the OS.apt-get
Optionssudo− The sudo command is used to make sure the command runs with root access.update− Update option ensures that all packages on the Linux system are updated.sudo apt-get update
Step 3- The next step is to install the certificates needed to later download required Docker packages for a job with the Docker site. The following command can be used.sudo apt-get install apt-transport-https ca-certificates
Step 4− Adding fresh GPG key will be the next step. This key must guarantee that the required packages for Docker are all encrypted.This command is intended to download the key from hkp:/ha.pool.sks-keyservers.net:80 and add it to the adv keychain by means of the ID58118E89F3A912897C070ADBF76221572C52609D. Please note that to download the necessary Docker packages, this specific key is needed.Step 5 − Next, you need to add the appropriate site to docker.list of the apt package manager, depending on the version of Ubuntu which you hold, to allow it to detect and download the Docker packages from the Docker site.Precise 12.04 (LTS) ─ deb https://apt.dockerproject.org/repoubuntu-precise mainTrusty 14.04 (LTS) ─ deb https://apt.dockerproject.org/repo/ ubuntu-trusty mainWily 15.10 ─ deb https://apt.dockerproject.org/repo ubuntu-wily mainXenial 16.04 (LTS) - https://apt.dockerproject.org/repo ubuntu-xenial mainecho "deb https://apt.dockerproject.org/repo ubuntu-trusty main”
| sudo tee /etc/apt/sources.list.d/docker.listStep 6 –The next step is to update the packages on Ubuntu scheme with the apt-get update command.Step 7 ‐ if we want to make sure that the package manager points towards the correct repository then we can do this by issuing the apt-cache command.apt-cache policy docker-engineStep 8– Edit the update command apt-get to guarantee that all local system packages are up-to-date.Step 9- The Linux-image-extra-* kernel packages that allow the user to use the aufs storage driver are required for Ubuntu Trusty, Wily and Xenial. The newer variants of Docker use this engine.The following command can be used:sudo apt-get install linux-image-extra-$(uname -r)
linux-image-extra-virtualStep 10− Installing Docker is the final step and this can be done with the following command:sudo apt-get install –y docker-engineHere, apt-get utilizes the installation feature to download and install Docker from the Docker page. The Docker engine is the official package for Ubuntu based devices by the Docker Corporation.The docker running version can be checked by running below command:docker version
Docker is intended to benefit developers and syste...
12 DevOps Skills That A DevOps Engineer Should Master
By Anju M Dominic
Are you an engineer looking out to excel in DevOps skills? Is your team looking to adopt DevOps? You have come to the right place. In this article, we will discuss key DevOps engineering skills that make you an expert in this space. DevOps is all about breaking down the traditional silos and creating a culture of collaboration between business, operations and development teams. Along with the culture aspect, DevOps also emphasizes the key aspect of automating any repetitive and error-prone tasks using a spectrum of modern engineering tools. This article will help you gain insights on 12 specific skill set one needs to master in this space.One thing to keep in mind when you talk about a “DevOps engineer“ is that it is not a role but a skill set that needs to be mastered by every software developer and not just operation folks.DevOps Skills"DevOps, everyone is doing it, few have mastered it " - Mirco Hering, Author of “DevOps for the Modern Enterprise”. He explicitly quotes that nowadays all are adopting and working in DevOps way without understanding much about the key concepts and skills needed. Only a few are doing it right. What started as a great idea would end up in becoming a mere buzz word if we don’t understand the 12 Devops engineering skills.The 12 DevOps engineering skills are:1. Linux fundamentals and scriptingLinux is an open-source operating system created by Linus Torvalds in 1991. Since then there has been no looking back. Linux is now the most preferred operating system in the world. It’s more secure, compared to other operating systems like windows. Most of the companies have their environment setup in Linux based systems.Many DevOps tools in the configuration management space like Chef, Ansible, Puppet, etc have their architecture based on Linux master nodes. These tools help in provisioning and managing infrastructure automatically with the help of any scripting language like Ruby, Python, etc.Linux fundamentals and scripting know-how is a must to get you started with infrastructure automation which is a key concept in DevOps.2. Knowledge of various DevOps tools and technologiesDevOps is implemented with the help of tools but in most of the cases, DevOps is often misunderstood as tools. We have to always remember the great quote from Scott Hanselman “The most powerful tool we have as developers are automation.”The main aim of DevOps is to add value to the customer at an increased pace. Tools are chosen to incorporate this purpose and never to be used for the sake of using it. Technical knowledge of the tools is an added advantage for you to embrace DevOps.DevOps tools are categorized broadly into 10 categories:Collaboration toolsApplication Life management and Issue Tracking toolsCloud/Iaas/Paas/Serverless toolsSource control management toolsPackage ManagersContinuous Integration and continuous delivery toolsContinuous Testing toolsRelease orchestration toolsMonitoring toolsAnalytics tools.In each of these categories, we have more than 10 tools. A right tool must be chosen in each of these categories based on client requirements and the project environment. The main point to remember is that a tool should add value to the customer either by reducing delivery time or increasing the quality of the deliverables.3. Continuous Integration And Continuous DeliveryA better understanding of the continuous integration and continuous delivery approaches helps to deliver a high-quality product at a faster pace to the clients.Continuous integration is one of the best practices in DevOps Community where whenever a developer finishes a functionality or a user story(in terms of scrum) he/she integrates the new code with the existing code base continuously. This helps to save a lot of time spent during the integration phase of the project. Continuous integration helps to detect integration issues in the early stages itself thus making the life of the developer easier.Continuous delivery comes as an extension to continuous integration where the newly integrated code is made ready for deployment automatically without or minimum human intervention. Often in the case of the waterfall model, the development team has to release the new code to the testing team and then the testing team takes it forward. This usually takes a couple of days. These delays could be avoided by automating the transfer and testing process, making the code ready for deployment quickly.Continuous deployment is the next step in automating the delivery pipeline of an application. This is where the new code is automatically deployed in the production environment. Some of the software companies do not consider continuous deployment as a best practice as they foresee it as a place where a lot of defects can creep into.4. Infrastructure as Code (IAC)Infrastructure as Code is the latest best practice in the DevOps community. This helps to provision and manage infrastructure by abstracting to a high-level programming language. Thus all the features of the source code could be applied to the infrastructure of the application like version control, tracking, storing in repositories, etc. With the emergence of IAC, days of manually configured infrastructure and infrastructure shell scripts are gone. A person who knows to develop infrastructure as code creates less error-prone, consistent and reliable infrastructure.5. DevOps Key ConceptsDevOps is a culture where business, development, and operations teams collaborate breaking the traditional silos. The key value is to create a cross-functional team that knows what each team member does and where any team member can take up the work of the other, thus providing a better collaboration within team members and delivering a high-quality product to the customer. Since we don’t have silos anymore, unwanted time spent on transfer of the code between various teams like the testing team, the operation team is reduced, increasing the pace of delivery.Another key concept is automating everything. This is done to generate a high-quality product for the customers by reducing human defects.6. Soft SkillsDevOps emphasizes culture and people more than tools and practices. Hence people skills are a must-have when we are trying to adopt DevOps. The next important key value is trust among the team members. Trust is enabled by active and effective communication between team members creating positive vibes among team members. This, in turn, gets reflected on the quality of the deliverables and finishing off the work on time.7. Customer-first mindsetDevOps emphasizes on a customer-first mindset. All people who adopt DevOps should take decisions keeping this in mind. No activity should be performed that does not add value to the customer.8. Security skillsDevOps is all about speed, automation, and quality. As we increase the speed often we encounter vulnerabilities that get introduced into the code at a faster pace. DevOps practitioners should be able to write the code that is protected from various attacks. This has often led to DevSecOps thinking where security features are incorporated from the beginning rather than stitching it at the end.9. FlexibilityAccording to Heraclitus: “The Only Thing That Is Constant Is Change ”. A team that embraces DevOps must be equipped to adopt change. All team members should be able to accept a requirement change or a role change. He/she must be comfortable to work in integration, testing, release, deployment, etc and also should have the technical knowhow. He/she must be aware of modern engineering tools and should be equipped to work on different tools based on requirements. Anant Agarwal, CEO of edX summarises the flexibility as follows:“It’s hard to learn something that seems to evolve as quickly as the lessons are taught. Self-learners are the perfect candidates for embracing and pursuing DevOps adoption, as it requires a roll-up-your-sleeves, trial-and-error, do-it-yourself, continuous learning approach.”10. CollaborationCollaboration is one of the important key values in DevOps. A team that adopts DevOps is a cross-functional team where members from business, operations and development teams co-exist. Active collaboration is a key skill required by the team members. There should be transparency between the team members. Everyone should know what is happening in the team and who is responsible for a particular task.11. Decision-makingDecisiveness or decision-making is one of the key elements employers look for in their employees. The ever-changing nature of the code in the DevOps team should be handled by a person who is quick in taking decisions. Thus enabling quick delivery and deployment of new code. Faster deployments give faster returns to the customer and provide immediate feedback from the end-users. This often leads to customer satisfaction.12. Agile engineeringDevOps was introduced in 2008 by Patrick Debois and Andrew Clay Shafer after a discussion about agile infrastructure. Therefore DevOps is heavily rooted in agile principles and values. There are 4 agile values and 12 principles according to the Agile Manifesto. Every DevOps practitioner needs to have an in-depth understanding of agile philosophies.Practical knowledge of agile practices like Test-driven development, behavior-driven development, etc helps to make a great DevOps practitioner.ConclusionDevOps is all about breaking down silos and where development teams, operation teams, and business teams collaborate to deliver a high-quality product quickly. All team members where DevOps is adopted should have all the 12 DevOps engineering skills. He/she focuses on customer satisfaction rather than local optimizations. To summarise, he/she should be a great team player, technically strong with good knowledge of DevOps tools and who can adapt to changes.This subtle but important combination of all the attributes is important for a professional to be a DevOps engineer. Because, at the end of the day, customer satisfaction is the key to running a successful business enterprise.
Are you an engineer looking out to excel in DevOps...
Top 10 DevOps Programming Languages That You Must Know