DEV Community

Cover image for How to Install Docker on Arch Linux
Anjan Shomodder
Anjan Shomodder

Posted on

3 1 1 1 1

How to Install Docker on Arch Linux

Today, you will learn how to install docker on Linux or more specifically, Arch Linux. You can follow the steps for debian and Red Hat based systems as well. Just the package installation will be bit different.

Check the docs:

Video

Step 1: Update the System (Optional)

Update the system with:

sudo pacman -Syu
Enter fullscreen mode Exit fullscreen mode

Step 2: Install Docker

Install Docker using the following command:

sudo pacman -S docker
Enter fullscreen mode Exit fullscreen mode

Step 3: Start and Enable Docker Service

Start the Docker service and enable it to start on boot:

sudo systemctl start docker
sudo systemctl enable docker
Enter fullscreen mode Exit fullscreen mode

Step 4: Add User to Docker Group

To avoid using sudo with every Docker command, add your user to the Docker group:

sudo usermod -aG docker $USER
Enter fullscreen mode Exit fullscreen mode

After adding the user to the Docker group, log out and log back in for the changes to take effect.

Step 5: Verify Docker Installation

Verify that Docker is installed correctly by running:

docker --version
Enter fullscreen mode Exit fullscreen mode

You can also run a test container to ensure everything is working:

docker run hello-world
Enter fullscreen mode Exit fullscreen mode

That's it! Docker should now be installed and ready to use on your Arch Linux system.

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (2)

Collapse
 
sc0v0ne profile image
sc0v0ne

Simple and very good explanation!!

Collapse
 
thatanjan profile image
Anjan Shomodder

thank you

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay