Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

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

Posted on

     

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:

sudopacman-Syu
Enter fullscreen modeExit fullscreen mode

Step 2: Install Docker

Install Docker using the following command:

sudopacman-S docker
Enter fullscreen modeExit fullscreen mode

Step 3: Start and Enable Docker Service

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

sudosystemctl start dockersudosystemctlenabledocker
Enter fullscreen modeExit fullscreen mode

Step 4: Add User to Docker Group

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

sudousermod-aG docker$USER
Enter fullscreen modeExit 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 modeExit fullscreen mode

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

docker run hello-world
Enter fullscreen modeExit fullscreen mode

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

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
sc0v0ne profile image
sc0v0ne
Machine learning, deep learning, and raw code. Presented clearly and with examples.
  • Location
    127.0.0.1
  • Education
    BSc. Information System
  • Work
    AI/ML Engineer and Tech Writer
  • Joined

Simple and very good explanation!!

CollapseExpand
 
thatanjan profile image
Anjan Shomodder
Full stack developer, instructor of Cules Coding and DSA with JS YouTube channel, and blogger.
  • Email
  • Education
    Self Taught | Youtube | Udemy
  • Work
    Full Stack Developer
  • Joined

thank you

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Full stack developer, instructor of Cules Coding and DSA with JS YouTube channel, and blogger.
  • Education
    Self Taught | Youtube | Udemy
  • Work
    Full Stack Developer
  • Joined

More fromAnjan Shomodder

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp