{"id":16689,"date":"2022-04-20T09:06:47","date_gmt":"2022-04-20T09:06:47","guid":{"rendered":"https:\/\/linuxways.net\/?p=16689"},"modified":"2022-04-20T09:06:47","modified_gmt":"2022-04-20T09:06:47","slug":"how-to-install-docker-on-manjaro-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/manjaro\/how-to-install-docker-on-manjaro-linux\/","title":{"rendered":"How to Install Docker on Manjaro Linux"},"content":{"rendered":"<h2>What is Docker?<\/h2>\n<p>Docker is software that runs applications in a containerized environment. It helps developers in running the application on any system without worrying about the compatibility of the application with the system and dependencies.<\/p>\n<p>Today, we will see how to install Docker on Manjaro Linux 21 using simple one line commands.<\/p>\n<p>Let\u2019s begin!<\/p>\n<h2>Installation Guide:<\/h2>\n<p>Following are the steps involved in installing Docker on Manjaro Linux:<\/p>\n<h3>Step 1: Update your system<\/h3>\n<p>Firstly, we will update our Manjaro machine. It can be done by running the following command:<\/p>\n<pre>sudo pacman -Syu<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"151\" height=\"23\" class=\"wp-image-16690\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-147.png\" \/><\/p>\n<h3>Step 2: Install Docker<\/h3>\n<p>In this step, we will install Docker. To do that, execute this command:<\/p>\n<pre>sudo pacman -S docker<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"202\" height=\"23\" class=\"wp-image-16691\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-148.png\" \/><\/p>\n<h3>Step 3: Start the Docker service<\/h3>\n<p>Once Docker is successfully installed, start the Docker service using the following command:<\/p>\n<pre>sudo systemctl start docker.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"24\" class=\"wp-image-16692\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-149.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-149.png 320w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-149-300x23.png 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/p>\n<h3>Step 4: Enable the Docker service<\/h3>\n<p>Next, we will enable the Docker service by issuing the following command:<\/p>\n<pre>sudo systemctl enable docker.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"335\" height=\"28\" class=\"wp-image-16693\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-150.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-150.png 335w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-150-300x25.png 300w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/p>\n<h3>Step 5: Check Docker version<\/h3>\n<p>To the check the version of the Docker you have installed, run the following command:<\/p>\n<pre>sudo docker version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"176\" height=\"25\" class=\"wp-image-16694\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-151.png\" \/><\/p>\n<p>Through this command, you can also verify if the installation has been successful or not. If the terminal returns the version number in the output, that means the installation was successful.<\/p>\n<h3>Step 6: Check Docker info<\/h3>\n<p>To see information on Docker, you can use the below-mentioned command. This will tell you how many containers are currently active. You will also see the configurations through this command.<\/p>\n<pre>sudo docker info<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"148\" height=\"24\" class=\"wp-image-16695\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-152.png\" \/><\/p>\n<h3>Step 7: Run Docker without root<\/h3>\n<p>To run Docker as a current user, you can add your account to the docker group with the help of this command:<\/p>\n<pre>sudo usermod -aG docker $USER<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"30\" class=\"wp-image-16696\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-153.png\" \/><\/p>\n<h3>Step 8: Reboot the system<\/h3>\n<p>Now that you have added all the configurations, you need to reboot your system to update the changes. Issue the following command to do that:<\/p>\n<pre>reboot<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"63\" height=\"27\" class=\"wp-image-16697\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-154.png\" \/><\/p>\n<h3>Step 9: How to search for a Docker image<\/h3>\n<p>Now that we have installed and configured Docker, we can download Docker images. To download a specific docker image, first of all, we will search for it using the command syntax mentioned below:<\/p>\n<pre>docker search [name]<\/pre>\n<p>The docker image we are looking for is Nginx.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"182\" height=\"34\" class=\"wp-image-16698\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-155.png\" \/><\/p>\n<p>This command will return a list of all the Nginx Docker images that you can choose from to install.<\/p>\n<h3>Step 10: Install Docker image<\/h3>\n<p>We have decided to go with the hello-world docker image. To install it, use the pull command like this:<\/p>\n<pre>docker pull hello-world<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"210\" height=\"27\" class=\"wp-image-16699\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-156.png\" \/><\/p>\n<h3>Step 11: Run a docker image<\/h3>\n<p>Once the image is downloaded, execute the following command to run it:<\/p>\n<pre>docker run hello-world<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"209\" height=\"24\" class=\"wp-image-16700\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-157.png\" \/><\/p>\n<h3>Step 12: Monitor Docker<\/h3>\n<p>Docker allows us to monitor our images, the system resources being utilized by the image etc. This can be done by using the following command:<\/p>\n<pre>docker container ls<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"176\" height=\"28\" class=\"wp-image-16701\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-158.png\" \/><\/p>\n<h3>Step 13: See installed Docker images<\/h3>\n<p>You can also check the list of all the installed Docker images through this command:<\/p>\n<pre>docker images<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"124\" height=\"30\" class=\"wp-image-16702\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-159.png\" \/><\/p>\n<h3>Step 14: See statistics of running images<\/h3>\n<p>To see the system resources statistics (like RAM, CPU, and network usage) being utilized by the running images, issue this command:<\/p>\n<pre>docker stats<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"118\" height=\"24\" class=\"wp-image-16703\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-160.png\" \/><\/p>\n<h3>Step 15: Docker\u2019s network configuration<\/h3>\n<p>You can also see Docker\u2019s network configurations with the help of the following command:<\/p>\n<pre>docker network ls<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"159\" height=\"31\" class=\"wp-image-16704\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/04\/word-image-161.png\" \/><\/p>\n<p>That\u2019s all folks!<\/p>\n<p>In today\u2019s guide, we saw in detail how to deploy Docker on Manjaro Linux using a few easy to follow commands. We also saw how to configure Docker. In the end, we looked at some commands to check Docker information. Docker is very simple to use on Manjaro Linux. Now that the Docker is successfully installed, you can install any docker image you want with ease and run it.<\/p>\n<p>I hope you liked the tutorial.<\/p>\n<p>To see how you can install Docker on Debian 11, check this out:<\/p>\n<p><a href=\"https:\/\/linuxways.net\/de\/debian\/how-to-install-docker-on-debian-11\/\">https:\/\/linuxways.net\/debian\/how-to-install-docker-on-debian-11\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>What is Docker? Docker is software that runs applications in a containerized environment. It helps developers in running the application on any system without worrying about the compatibility&hellip;<\/p>","protected":false},"author":1,"featured_media":16707,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[891],"tags":[160,829],"class_list":["post-16689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-manjaro","tag-docker","tag-manjaro-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=16689"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16689\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/16707"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=16689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=16689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=16689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}