• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to Install Docker on Windows and Linux

AnonyViet by AnonyViet
April 28, 2023
in Network
0

My friend asked me to deploy an app written in NodeJS and then asked me to check and write more features for it, but I don’t like to install NodeJS on my computer. Plus you have to install a bunch of other libraries with the same version as the app. Surely everyone has had a similar situation? All in all, it’s torturous and very time consuming. To solve this problem, Docker was born, in this article I will introduce you to what docker is and show you how to install docker on Windows and Linux.

Join the channel Telegram belong to AnonyViet ???? Link ????

How to Install Docker on Windows and Linux

This article will not go into technical analysis of how docker works and compare docker with Virtual Machines. I will make a separate post to analyze these two issues later.

What is Docker?

Docker is an open source platform that allows developers to build, deploy, and run their applications in a container. All dependencies are pre-installed in the container so that your project can be easily deployed on any environment.

Docker is the most popular application in container virtualization platforms because it is reliable, efficient, and highly scalable. The application runs on the Docker engine, a DevOps technology that provides a clean and lightweight environment for testing and deployment. Again, Docker is not a machine but a container, it only virtualizes the operating system, not the hardware at the underlying layer.

How to install Docker on Windows 11

To install Docker on Windows 11, you need turn on WSL2, you can still use Docker without WSL2 enabled. At this point Docker will use HyperV for virtualization, but the performance will be worse than using WSL2, so you should just turn on WSL2 to optimize the best hardware.

How to enable WSL2

Step 1: Open “Windows Features” in the Start Menu.

Step 2: Enable the following features: Virtual Machine Platform, Windows Hypervisor Platform and Windows Subsystem for Linux.

How to Install Docker on Windows and Linux 17

After turning on those features, please restart the device.

Step 3: Open CMD with Admin rights and enter the following command to update WSL:

wsl --update

How to Install Docker on Windows and Linux 18

Step 4: Enter the following command to see the distros you can install on WSL2

wsl --list --online

How to Install Docker on Windows and Linux 19

Step 5: Enter the following command to proceed with the installation of the distro you want. If you don’t enter any distro it will default to Ubuntu:

wsl -- install -d <Distribution>

How to Install Docker on Windows and Linux 20

After installing the distro, you can restart your computer again and it will be successful. After rebooting, you open WSL2 and proceed to set up user and password.

How to Install Docker on Windows and Linux 21

How to install Docker

After you have successfully installed WSL2, follow these steps to install Docker.

Step 1: Download the Docker file by visiting the Docker homepage here.How to Install Docker on Windows and Linux 22

Step 2: Remember to choose “Use WSL 2 instead of Hyper-V” and press OK.

How to Install Docker on Windows and Linux 23

Step 3: After the installation is complete, press “Close and log out”Remember to save the work you are doing again.

How to Install Docker on Windows and Linux 24

Step 4: Press “Accept”.

How to Install Docker on Windows and Linux 25

If nothing happens, you should be able to get into Docker. If the software displays as below, then it is successful.

How to Install Docker on Windows and Linux 26

Note: Docker Desktop has quite a lot of errors during the installation process, I also encountered some errors when installing and took a long time to fix. If you encounter an error, you can inbox Anonyviet fanpage or post in Anonyviet’s group.

How to Install Docker on Linux

Installing Docker on Linux is much easier than on Windows, you just need to run the command without having to do anything.

Note: The distro I use to install Docker is Ubuntu 22.04. For other Distro versions like Debian or Arch, it will still be installed normally with the commands below.

Step 1: Update the list of packages with the command below:

sudo apt update

Step 2: Install the necessary packages for apt to use packages over HTTPS:

sudo apt install apt-transport-https ca-certificates curl software-properties-common

Step 3: Add the GPG key for the Docker repository to your system:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Step 4: Add Docker to the APT source:

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Step 5: Update the added packages:

sudo apt update

Step 6: Check that the package installation source is from the Docker repo instead of Ubuntu’s default repo:

apt-cache policy docker-ce

Step 7: Install Docker-ce:

sudo apt install docker-ce

Step 8: Verify Docker has started or not:

sudo systemctl status docker

How to Install Docker on Windows and Linux 27

Step 9: Visit Docker’s download page here. Scroll down and select the Distro you are using, I choose Ubuntu.

How to Install Docker on Windows and Linux 28

Step 10: Download the DEB file to your computer.How to Install Docker on Windows and Linux 29

Step 11: Open Terminal at the directory where you downloaded the deb file and run the following command:

sudo apt install ./docker-desktop-*-amd64.deb

By default, the docker command can only be executed by root or a user in the docker group. So you need to add your user to the docker group to avoid typing sudo or getting an error.

Step 12: Add your user to the Docker group:

sudo usermod -aG docker $USER

Step 13: Enable Docker bucket:

newgrp docker

Step 14: Start Docker Desktop:

systemctl --user start docker-desktop

How to Install Docker on Windows and Linux 30

That’s it, good luck.

Rate this post

Tags: DockerinstallLinuxWindows
Previous Post

[Facebook] Full How To Unlock Facebook

Next Post

[Facebook] Report Guide ver. Türkiye

AnonyViet

AnonyViet

Related Posts

Script backup database and website on telegram
Network

Script backup database and website on telegram

May 2, 2025
Create 64GB RAM 16 core for free on Google IDX
Network

Create 64GB RAM 16 core for free on Google IDX

April 13, 2025
What is VPS running Vietnamese software? What is the reason for installing Vietnamese software on VPS?
Network

What is VPS running Vietnamese software? What is the reason for installing Vietnamese software on VPS?

February 17, 2025
Create Ronin wallet to play pixels on VPS Windows
Network

Create Ronin wallet to play pixels on VPS Windows

February 17, 2025
What is Proxy Gradient Network? Instructions for using Proxy to suspend multiple Gradient accounts
Network

What is Proxy Gradient Network? Instructions for using Proxy to suspend multiple Gradient accounts

December 26, 2024
How to buy a .news domain for free for 0 VND at Namecheap
Network

How to buy a .news domain for free for 0 VND at Namecheap

December 22, 2024
Next Post
[Facebook] Report Guide ver.  Türkiye

[Facebook] Report Guide ver. Türkiye

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to check the chatgpt chatGPT about you?

How to check the chatgpt chatGPT about you?

May 11, 2025
Elon Musk launches Grok 3.5: regardless of internet data

Elon Musk launches Grok 3.5: regardless of internet data

May 10, 2025
Instructions for installing Facebook Lite on super light iPhone

Instructions for installing Facebook Lite on super light iPhone

May 10, 2025
Little Language Lessons: Learn foreign languages ​​with Google

Little Language Lessons: Learn foreign languages ​​with Google

May 9, 2025
How to check the chatgpt chatGPT about you?

How to check the chatgpt chatGPT about you?

May 11, 2025
Elon Musk launches Grok 3.5: regardless of internet data

Elon Musk launches Grok 3.5: regardless of internet data

May 10, 2025
Instructions for installing Facebook Lite on super light iPhone

Instructions for installing Facebook Lite on super light iPhone

May 10, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to check the chatgpt chatGPT about you?

How to check the chatgpt chatGPT about you?

May 11, 2025
Elon Musk launches Grok 3.5: regardless of internet data

Elon Musk launches Grok 3.5: regardless of internet data

May 10, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí SHBET bongdaso

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí SHBET bongdaso