A Guide on How to Set Up Docker on Ubuntu
Interdiction :-
Docker has completely changed how we develop software by letting us make small, portable packages called containers. These containers bundle up our applications and all the stuff they need to run. This guide will show you how to install Docker and use its main features. It will help you work more smoothly on your software projects and deploy them faster.
Prerequisites
A computer with a 64-bit Ubuntu operating system
Administrator privileges (for installation)
Basic understanding of terminal commands (not necessary it’s helpful )
Steps :-
step 01 > Update Package Index
To ensure that your local package index is updated, it is recommended to perform this task prior to Docker installation. Simply open a terminal and execute the command below:
sudo apt update
step 02 > Install Dependencies
Before setting up Docker, the installation of a few necessary packages is mandatory. Execute the given command to install these dependencies.
sudo apt install apt-transport-https ca-certificates curl software-properties-common
step 03 >Add Docker's Official GPG Key
In order to guarantee the genuineness of Docker packages, execute the following command to add Docker's official GPG key onto your system:
curl -fsSL <
https://download.docker.com/linux/ubuntu/gpg
> | sudo apt-key add -
step 04 > Add Docker Repository
Next, add the Docker repository to your system's software sources
sudo add-apt-repository "deb [arch=amd64] <
https://download.docker.com/linux/ubuntu
> $(lsb_release -cs) stable"
Step 6 > Install Docker Engine
Finally, install the Docker Engine
sudo apt install docker-ce
Step 7 > Verify Docker Installation
After installing Docker, confirm its proper functioning by checking the version.
docker --version
Step 8 > Run Docker Without sudo (Optional)
In conclusion
Having successfully installed Docker on your Ubuntu system, you are now able to effortlessly containerize and deploy applications using its features.
By following this guide, you will be able to set up Docker on Ubuntu with ease and fully utilize containerization in your projects.
Subscribe to my newsletter
Read articles from Gayani Liyana Arachchi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by