{"id":23837,"date":"2024-01-29T10:10:20","date_gmt":"2024-01-29T10:10:20","guid":{"rendered":"https:\/\/linuxways.net\/?p=23837"},"modified":"2024-01-29T10:14:03","modified_gmt":"2024-01-29T10:14:03","slug":"how-to-install-docker-on-arch-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/arch\/how-to-install-docker-on-arch-linux\/","title":{"rendered":"How to Install Docker on Arch Linux"},"content":{"rendered":"<p>Applications in Arch Linux can be installed and used in the form of containers as they provide a full run time environment for the applications. These containers contain all the necessary libraries and dependencies to run the respective application smoothly. Now to run all the container applications, there are different tools that can be used to run applications in containers like Podman, Docker, Kubernetes and more. Docker is one of the oldest and the most popular engine that is used to run container applications on any Linux distribution.<\/p>\n<p><strong>Outline: <\/strong><\/p>\n<p><a href=\"#post-23837-b0zw8qhh1lsn\"><strong>How to Install Docker on Arch Linux<\/strong><\/a><\/p>\n<ul>\n<li><a href=\"#post-23837-1um6khtkjd9r\"><strong>Pacman<\/strong><\/a><\/li>\n<li><a href=\"#post-23837-76lqahxefoq\"><strong>Snap<\/strong><\/a><\/li>\n<li><a href=\"#post-23837-laf2ko61y9tj\"><strong>Yay<\/strong><\/a><\/li>\n<\/ul>\n<p><a href=\"#post-23837-cbj1vpu7ejp7\"><strong>How to use docker on Arch Linux<\/strong><\/a><\/p>\n<p><a href=\"#post-23837-efxfgu6ef639\"><strong>How to Remove Docker from Arch Linux<\/strong><\/a><\/p>\n<p><a href=\"#post-23837-j6k2pvgsj4c5\"><strong>Conclusion<\/strong><\/a><\/p>\n<h2><a id=\"post-23837-b0zw8qhh1lsn\"><\/a><strong>How to Install Docker on Arch Linux <\/strong><\/h2>\n<p>Docker, as mentioned above, is a tool which serves the purpose of running container applications on Arch Linux, it is primarily used for testing, developing and deploying new applications. The process of installation of any package or software on Arch Linux varies but most of the applications can be installed through its default package manager. Docker on Arch Linux can be installed through various ways which will be discussed in this guide:<\/p>\n<h2><a id=\"post-23837-1um6khtkjd9r\"><\/a><strong>Method 1: Through Pacman <\/strong><\/h2>\n<p>One of the easy and straight forward ways to install Docker on Arch Linux is by using its default package manager and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"499\" class=\"wp-image-23841\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-1.png 670w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-1-300x223.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/p>\n<p>Once the installation is complete, first start the docker service then enable it and after that check its status by executing the following:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl start docker<br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> docker<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;<\/span><br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw2\">sudo<\/span> systemctl status docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"500\" class=\"wp-image-23845\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-2.png 678w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-2-300x221.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/strong><\/p>\n<p>Now create a symbolic link for docker between the <em>\/usr\/bin\/docker<\/em> executable and <em>\/usr\/local\/bin\/docker<\/em>. This allows you to run the docker command from anywhere in your terminal, without having to specify the full path to the executable:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ln<\/span> <span class=\"re5\">-s<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>docker <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>local<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"489\" class=\"wp-image-23848\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-3.png 669w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-3-300x219.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/p>\n<p>As in the image above, you can see that there is an error of permission which means that docker can only run in root condition. To run docker in normal user mode, we have to add the user to the docker group by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpasswd <span class=\"re5\">-a<\/span> <span class=\"sy0\">&lt;<\/span>enter-your-user-name<span class=\"sy0\">&gt;<\/span> docker<\/div><\/div>\n<p>Here, replace the <em>enter-your-user-name<\/em> with your account name or the name of user you wish to use docker image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"198\" class=\"wp-image-23854\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-4.png 666w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-4-300x89.png 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/p>\n<p>Don\u2019t forget to re-login to apply changes. So, when we access docker info with a normal user we will get results like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"495\" class=\"wp-image-23862\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-5.png 671w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-5-300x221.png 300w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/p>\n<h2><a id=\"post-23837-76lqahxefoq\"><\/a><strong>Method 2: Through Snap <\/strong><\/h2>\n<p>Like default package manager there are some third-party package managers as well which can be used to install applications and the significance for using third party package manager is that they have most recent version of the application sometimes. To install Docker through snap package manager you need to execute the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw2\">install<\/span> docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"356\" class=\"wp-image-23866\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-6.png 671w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-6-300x159.png 300w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/p>\n<p>Now after installation, if you see a message for a warning then see that warning by executing the <em>snap warnings<\/em> command, and if the warning is about snap app armor, then restart the app armor service. Now perform a system reboot to apply the changes and after that confirm the installation by checking the docker version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"167\" class=\"wp-image-23870\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-7.png 670w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-7-300x75.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/p>\n<p>If in any case the version command is not executing, try enabling the docker using snap by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw3\">enable<\/span> docker<\/div><\/div>\n<p>The snap package manager is not installed by default on Arch Linux so to install it on Arch Linux clone its git repository and install the make package:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">git clone<\/span> https:<span class=\"sy0\">\/\/<\/span>aur.archlinux.org<span class=\"sy0\">\/<\/span>snapd.git<br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw3\">cd<\/span> snapd<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;<\/span><br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span>makepkg <span class=\"re5\">-si<\/span><\/div><\/div>\n<p>Now enable the snap socket service and create a symbolic link so that it can be accessed from the home directory as well:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> <span class=\"re5\">--now<\/span> snapd.socket<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;<\/span><br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ln<\/span> <span class=\"re5\">-s<\/span> <span class=\"sy0\">\/<\/span>var<span class=\"sy0\">\/<\/span>lib<span class=\"sy0\">\/<\/span>snapd<span class=\"sy0\">\/<\/span>snap <span class=\"sy0\">\/<\/span>snap<\/div><\/div>\n<p>Now after installation of any application you may encounter an error message of seeding error then enable the app armor service and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">systemctl <span class=\"kw3\">enable<\/span> <span class=\"re5\">--now<\/span> snapd.apparmor<\/div><\/div>\n<p><\/strong><\/p>\n<h2><a id=\"post-23837-laf2ko61y9tj\"><\/a><strong>Method 3: Through AUR (yay)<\/strong><\/h2>\n<p>Arch User Repository is a community driven repo that uses helpers like yay, pacmac to install applications on Arch Linux. If you are looking for a newer version of Docker as compared to the previous methods, then used this method to install docker of Arch Linux and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">yay <span class=\"re5\">-S<\/span> docker<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"503\" class=\"wp-image-23877\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-8.png 675w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-8-300x224.png 300w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><\/p>\n<p>Now perform a system reboot to apply the changes and after that confirm the installation by checking the docker version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"201\" class=\"wp-image-23886\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-9.png 671w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-9-300x90.png 300w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/p>\n<p>Here you can see that using the AUR helper a relatively newer version of docker can be installed as compared to other methods. Just like other third party package managers yay is also not pre-installed on Arch so execute the below commands one by one to install yay:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">git clone<\/span> https:<span class=\"sy0\">\/\/<\/span>aur.archlinux.org<span class=\"sy0\">\/<\/span>yay.git<br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span><span class=\"kw3\">cd<\/span> yay<span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;<\/span><br \/>\n<br \/>\n<span class=\"sy0\">&lt;<\/span>strong<span class=\"sy0\">&gt;<\/span>makepkg <span class=\"re5\">-si<\/span><\/div><\/div>\n<p><\/strong><\/p>\n<h2><a id=\"post-23837-cbj1vpu7ejp7\"><\/a><strong>How To Use Docker on Arch Linux<\/strong><\/h2>\n<p>Docker is a utility that serves the purpose of running any application in a loosely isolated environment and that environment is usually named container. Here applications file is named as images which are first downloaded and then executed or built so here are some basic commands that you need to get familiar with for some basic tasks:<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>1: Downloading an Image<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>To run any application, you first have to download it and for that you need to use the <em>pull <\/em>command with the syntax given below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker pull <span class=\"sy0\">&lt;<\/span>image-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Here for illustration, I have downloaded image for Ubuntu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"687\" height=\"242\" class=\"wp-image-23887\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-10.png 687w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-10-300x106.png 300w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<h3><strong>2: Searching an Image <\/strong><\/h3>\n<p>Most of the time the applications have different names, version and creators so it\u2019s better to search the image with name to have a list of all the relevant images and for that use the below syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker search <span class=\"sy0\">&lt;<\/span>image-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Here I have searched for Debian and the output have names description status of the images related to Debian:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"494\" class=\"wp-image-23890\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-11.png 957w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-11-300x155.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-11-768x396.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/strong><\/p>\n<h3><strong>3: Listing all the Downloaded Images<\/strong><\/h3>\n<p>By listing the images, you will get the two types of information one is the list of images and the second one is the information about each downloaded image so to list all the images execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker images<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"199\" class=\"wp-image-23891\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-12.png 691w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-12-300x86.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/strong><\/p>\n<h3><strong>4: Running an Image<\/strong><\/h3>\n<p>To run any application of Docker there are two ways one is by downloading the image from its registry and the other way is by creating its docker file and then building it. So, to run an image downloaded from docker registry simply execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker run <span class=\"re5\">-it<\/span> <span class=\"sy0\">&lt;<\/span>image-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"241\" class=\"wp-image-23892\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-13.png 694w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-13-300x104.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/strong><\/p>\n<h3><strong>5: Listing Docker Processes <\/strong><\/h3>\n<p>To manage all the containers in Docker it is necessary to have information about all the running and stopped processes which can really help in resource allocation of the system. To list only the running processes, execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"kw2\">ps<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"195\" class=\"wp-image-23894\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-14.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-14-300x75.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-14-768x192.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/strong><\/p>\n<p>If you want to get the list for all the processes either running or stopped then execute the below command and further, you can manage them by using their container IDs:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"kw2\">ps<\/span> <span class=\"re5\">-a<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"185\" class=\"wp-image-23895\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-15.png 978w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-15-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-15-768x145.png 768w\" sizes=\"auto, (max-width: 978px) 100vw, 978px\" \/><\/strong><\/p>\n<h3><strong>6: Managing Docker Processes and Images<\/strong><\/h3>\n<p>To completely terminate any running process just list the currently running processes note their respective container IDs and then use the <em>kill<\/em> command by flowing the below syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"kw2\">kill<\/span> <span class=\"sy0\">&lt;<\/span>Container-ID<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"522\" class=\"wp-image-23897\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-16.png 808w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-16-300x194.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-16-768x496.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/strong><\/p>\n<p>If you want to stop any process for the time being, then use the<em> stop<\/em> command following the below syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker stop <span class=\"sy0\">&lt;<\/span>Container-ID<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Keep in mind that to start any process using the <em>start<\/em> command is only possible if the respective application is halted or stopped not terminated.<\/p>\n<p>Now to remove any application image simply use the <em>rm<\/em> command along with its container ID:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"kw2\">rm<\/span> <span class=\"sy0\">&lt;<\/span>container-ID<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"384\" class=\"wp-image-23900\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-17.png 963w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-17-300x120.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-17-768x306.png 768w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/strong><\/p>\n<p>If you want to have a detailed information about all the commands along with their purposes for Docker, then consult its help by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">docker <span class=\"re5\">--help<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"445\" class=\"wp-image-23901\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-18.png 726w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-18-300x184.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/strong><\/p>\n<h3><a id=\"post-23837-efxfgu6ef639\"><\/a><strong>How To Remove Docker from Arch Linux<\/strong><\/h3>\n<p>The removal process of any application on Arch Linux primarily depends on the method adopted for its installation. In case of Docker, it can be removed completely from Arch Linux using pacman which is its default repository in case if it is installed trough yay or pacman:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Rns<\/span> docker<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"493\" class=\"wp-image-23902\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-19.png 667w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-19-300x222.png 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/strong><\/p>\n<p>If you have installed docker on Arch using snap package manager than to remove it execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap remove docker<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"167\" class=\"wp-image-23904\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-20.png 667w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23837-20-300x75.png 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/strong><\/p>\n<p><strong>Note: <\/strong>There is another way for installing Docker on Arch and that is by using the git repository, but unfortunately this method is not successful as it terminates automatically during installation.<\/p>\n<h2><a id=\"post-23837-j6k2pvgsj4c5\"><\/a><strong>Conclusion <\/strong><\/h2>\n<p>Docker is a tool that is primarily used to run containerized applications on any of the Linux distributions and is preferred by the developers due to its performance and convenience. To install Docker on Arch Linux there are three ways which include using pacman, AUR helper yay and snap package. If you need to install a newer, then use the AUR helper method other than that default repository method is fine. Further to need comprehensive information of Docker commands consult its help.<\/p>","protected":false},"excerpt":{"rendered":"<p>To install Docker on Arch Linux there are three ways which include using pacman, AUR helper yay and snap package. Read more in this guide. <\/p>","protected":false},"author":113,"featured_media":23994,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1055],"tags":[],"class_list":["post-23837","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arch"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23837","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\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23837"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23837\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23994"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}