Docker Tutorial Series: Part 2

In part 2 of this series for Docker, you will learn about Docker installation on macOS and Windows.What is Docker Desktop for macOS and Windows?Docker Desktop for macOS and Windows is the fastest way to containerize applications. Docker is primarily a …


This content originally appeared on Level Up Coding - Medium and was authored by Ashish Choudhary

In part 2 of this series for Docker, you will learn about Docker installation on macOS and Windows.

What is Docker Desktop for macOS and Windows?

Docker Desktop for macOS and Windows is the fastest way to containerize applications. Docker is primarily a Linux technology, and initially, there was no support for other operating systems, such as Windows and macOS. The Docker team realized the issue, and as an outcome, Docker Desktop for macOS and Windows was born.

From the official documentation:

Docker Desktop is an application for macOS and Windows machines to build and share containerized applications and microservices.

You could think of it as an IDE but for your containers. Since containers are natively not supported on Windows and Mac, Docker Desktop creates lightweight VMs. To create VMs On Windows, it uses Hyper-V(WSL2 recommended) and Hyperkit on macOS. Docker Desktop provides you with a GUI to manage resources for this VM.

The good thing about Docker Desktop is that you set up everything you need to use Docker by using a single package for Mac and Windows.

A typical Docker Desktop installation includes the following components:

Don’t stress yourself. We will talk about these components in the upcoming blogs.

Let’s talk about some of the critical features that Docker Desktop provides.

Docker Desktop Features

Following are some of the key features.

  • Easily containerize and share your applications.
  • Ability to scan images for potential vulnerabilities.
  • Simplified UI to manage Docker components.
  • Docker Desktop supports multiple system architectures (i.e., Apple M1, ARM, Windows).
  • Provides features like Dev Environments to set up repeatable and reproducible development environments.
  • Built-in support for Kubernetes. You spin up a single-node functional Kubernetes cluster on your local machine using Docker Desktop.
  • Extend functionalities using third-party tools powered by Docker extensions.
  • Capability to run on Linux natively on Windows using WSL2.

We have some basic understanding of Docker Desktop, so in the next section, we will go through the steps of installing Docker on macOS and Windows.

Installing Docker Desktop on macOS

To install Docker Desktop on macOS, follow these steps:

  1. Go to the Docker website (docker.com/products/docker-desktop) and download the Docker Desktop for Mac installer.

2. Once the download is complete, double-click the downloaded .dmg file to open it.

3. Drag the Docker Desktop icon to the Applications folder to install it.

4. Open Docker Desktop from the Applications folder. You should see the following screen.

That’s it! Docker Desktop should is now installed and ready to use on your Mac.

Installing Docker Desktop on Windows

Following are the steps to install Docker Desktop on Windows:

  1. Go to the Docker website at docker.com/products/docker-desktop and click the “Download Docker Desktop for Windows” button. It will download the installation file.
  2. Once the download is complete, double-click the installation file to start the installation process. If prompted, allow the installer to make changes to your device.
  3. Follow the instructions in the Docker Desktop installation wizard. You can choose the default options unless you have specific requirements.
  4. During the installation, Docker may prompt you to enable features such as Hyper-V and Windows Subsystem for Linux (WSL). Make sure to allow these features if prompted.
  5. After the installation is complete, Docker will launch automatically. You should see the Docker icon in your system tray.
  6. Click on the Docker icon in the system tray and select “Settings.” From there, you can configure your Docker environment, such as specifying the number of CPUs and memory that Docker can use.
  7. To test your Docker installation, open a command prompt or PowerShell terminal and run the following command:
docker run hello-world

This will download and run a sample Docker image, and you should see a message indicating that Docker is working correctly.

Conclusion

That’s about it. Following the steps outlined in this blog, you can quickly and easily install Docker and take advantage of its many benefits. We will learn more about Docker-related concepts and terminologies in the next blog.

Originally published at https://ashishtechmill.com.


Docker Tutorial Series: Part 2 was originally published in Level Up Coding on Medium, where people are continuing the conversation by highlighting and responding to this story.


This content originally appeared on Level Up Coding - Medium and was authored by Ashish Choudhary


Print Share Comment Cite Upload Translate Updates
APA

Ashish Choudhary | Sciencx (2023-02-20T03:33:44+00:00) Docker Tutorial Series: Part 2. Retrieved from https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/

MLA
" » Docker Tutorial Series: Part 2." Ashish Choudhary | Sciencx - Monday February 20, 2023, https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/
HARVARD
Ashish Choudhary | Sciencx Monday February 20, 2023 » Docker Tutorial Series: Part 2., viewed ,<https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/>
VANCOUVER
Ashish Choudhary | Sciencx - » Docker Tutorial Series: Part 2. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/
CHICAGO
" » Docker Tutorial Series: Part 2." Ashish Choudhary | Sciencx - Accessed . https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/
IEEE
" » Docker Tutorial Series: Part 2." Ashish Choudhary | Sciencx [Online]. Available: https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/. [Accessed: ]
rf:citation
» Docker Tutorial Series: Part 2 | Ashish Choudhary | Sciencx | https://www.scien.cx/2023/02/20/docker-tutorial-series-part-2/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.