Day07 of #90DayOfDevOps Challenge: Mastering Linux Package Management with systemctl and Docker
Table of contents
Hey everyone! It's Day 07 of the Challenge, and in today's article, we're going to explore the Package Manager in Linux systemctl and learn about Docker and Jenkins.
What is Docker.?
Docker is an open-source platform that makes it super easy to deploy, scale, and manage applications using containerization. It lets developers package their apps and all their dependencies into containers, so they run the same way no matter where they are.
Containers are like lightweight, standalone packages that have everything you need to run your software—code, runtime, system tools, libraries, and settings. This means your app will work consistently, no matter where you deploy it.
What is Jenkins.?
Jenkins is an open-source automation server that makes continuous integration and continuous delivery (CI/CD). It helps automate building, testing, and deploying code, so developers can find and fix issues quickly. By using Jenkins, developers can set up a pipeline that automatically triggers these tasks whenever changes are made to the codebase.
What is systemctl .?
Systemctl allows you to start, stop, restart, enable, or disable services, and check their status. It's commonly used to manage background processes (or "services") in modern Linux distributions like Ubuntu, CentOS, and Fedora.
Now, let's move on to installing Docker. We'll be using the Ubuntu distribution for Linux.
Installing Docker on Linux
Update the package list and install required packages:
sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add the Docker APT repository:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Update the package list again:
sudo apt update
Install Docker:
sudo apt install docker-ce
Check Docker installation:
sudo systemctl status docker
If everything is set up correctly, you should see an output indicating that the Docker service is active and running.
By following these steps, you can successfully install Docker on your Ubuntu system and ensure it is running properly. Docker will now be ready to use, allowing you to create, deploy, and manage containers efficiently.
Stay tuned for more insights as I continue my #90DayOfDevOps challenges. If you have any questions or tips, feel free to share them in the comments. Let’s keep learning and growing together! 🚀