In this blog we will show you the process of docker installation in simple steps. If you are not acquainted with docker check out this blog. Docker installation is very easy, you just need to run a few commands.
I will show you docker installation by two method. Let's start
Docker installation on Ubuntu
Method 1
We can see in the below screenshot, docker is not install in our system.
Step 1
To install the docker on ubuntu, you need to first update the packages. when you run the command, this will ask for the password.
"sudo apt update "
Step 2
To install the docker on ubuntu, run the following command. sudo will give you root/administration access. It will take some time to install the docker.
“sudo apt install docker.io”
We can see in the below screenshot, after taking a some time docker installation process is successfully completed
Step 3
We can see in the given screenshot docker is installed successfully in our system. We can check docker version by using the following command.
"docker --version"
How to remove docker
Using the simple command you can remove the docker from your system.
“sudo apt remove docker.io”
Method 2
Set up the docker repository
Sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
Install docker CE
sudo apt-get update
Sudo apt-get install docker-ce
Step 1
We have already updated the packages. Now we will run the following command. This command will install required packages to work with docker.
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
step 2
Following command will download the key and add it in apt. This command will allow us to access the docker repository.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Step 3
Following command will add the docker repository.
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
Step 4
Now we will update the package using the following command. This will add some new packages
"sudo apt update"
Step 5
In this step we will install docker community edition. This will take some time to install docker in the system. In the below screenshot we can see the docker version 20.10.12
sudo apt-get install docker-ce
if you need any type of python or machine learning assignment help feel free to contact us
Comments