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.

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (2)

Collapse
 
sc0v0ne profile image
sc0v0ne

Simple and very good explanation!!

Collapse
 
thatanjan profile image
Anjan Shomodder

thank you

Live Coding: Using MCP to build & tune an Algolia index with AI

Let’s talk about MCP servers, not just what but why it's time to pay close attention to them. See the Algolia MCP server build and & tune an index and more. Q&A throughout.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️