How to install Docker in Arch Linux

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to install Docker in Arch Linux.

Installing docker in Arch Linux is quite simple, as all you have to do is use pacman in your terminal to download the docker package from the Arch Linux repository.

Even though downloading docker from Arch repository is not the only way to install Docker when it comes to Arch Linux, it's one of the quickest methods of doing so, and in this tutorial we'll be installing Docker in Arch Linux via pacman.

Install Docker in Arch Linux

To install Docker in Arch Linux, you can do so by following the steps below.

Step 1 - Update the system

Before installing Docker in your Arch Linux machine, make sure to update your system, this way you won't be facing issues when installing Docker or any other package.

Arch Linux can be easily updated from the terminal, to do so simply run the command below.

sudo pacman -Syu

Step 2 - Install Docker

Now that your system is up to date, proceed to install Docker.

Docker can be found in the extra repository of Arch Linux, which means you can download Docker directly from your terminal via any package manager, including the default package manager in Arch Linux pacman.

To download Docker package, simply run the following.

sudo pacman -S docker

Step 3 - Verify docker installation

Docker should be now installed in your Arch Linux system.

Before you launch docker, ensure that docker installation was done correctly.

To see if docker installation was completed without errors, run the command below to check docker version.

docker --version

Step 4 - Use Docker

In order to be able to use Docker, you must first start docker process.

Starting Docker process is easy, and it can be done by using systemctl.

sudo systemctl start docker

The command above will manually start Docker process. However, if you want docker to start automatically then you can do so by enabling Docker process.

sudo systemctl enable docker

By enabling Docker process, it allows you to use Docker without having to start its process manually when your machine boots up.

Uninstall Docker in Arch Linux

Since we installed Docker via pacman in this tutorial, you can also remove it via pacman.

To do so, run the following command.

sudo pacman -R docker


In this tutorial, you learned how to install and uninstall docker in Arch Linux, via pacman.