Welcome to Manjaro Tutorial. Today we are going to install Docker on Manjaro 18.0. Docker is a powerful way to deploy applications. Many developers now move and port their applications to Docker. By definitions, Docker is a technology that allows application to run on an isolated, self-contained containers. So, the application can run anywhere regardless the operating systems.
Manjaro is a well crafted Linux distribution. It is very easy to use in term of installing software. Manjaro with it’s Pacman and AUR repository provide a huge software collections, for both Desktop or Server.
Steps to Install Docker on Manjaro 18
Installation Overview
- Update Manjaro
- Install Docker
- Configure Docker user
Step 1. Update Manjaro
This is an important step. I recommend you to make sure that your Manjaro system is up to date. Use the following command to update your system.
sudo pacman -Syu
This process could take few minutes, depends on the internet speed.
Step 2. Install Docker
Use this command to install Docker
sudo pacman -S docker
Output:
[dhani@dhani-pc ~]$ sudo pacman -S docker resolving dependencies... looking for conflicting packages... Packages (2) bridge-utils-1.6-2 docker-1:18.05.0-2 Total Download Size: 32,87 MiB Total Installed Size: 159,49 MiB :: Proceed with installation? [Y/n]
Press Y and then Enter, to confirm the installation. After sometimes, Docker should be installed on your Manjaro system. Now run and enable Docker on startup.
sudo systemctl start docker sudo systemctl enable docker
Check Docker version
sudo docker version
It should return something like this
[dhani@dhani-pc ~]$ sudo docker version Client: Version: 18.05.0-ce API version: 1.37 Go version: go1.10.2 Git commit: f150324782 Built: Wed May 16 22:27:45 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.05.0-ce API version: 1.37 (minimum version 1.12) Go version: go1.10.2 Git commit: f150324782 Built: Wed May 16 22:28:17 2018 OS/Arch: linux/amd64 Experimental: false
Done. At this point, Docker is installed on Manjaro.
Step 3. Configure Docker user
By default, only user with root or sudo privileges can run or manage Docker. If you want to run docker without root privileges or without having to add sudo everytime, do the following
sudo usermod -aG docker $USER
Then, reboot Manjaro.
Upon reboot, you can run docker commands without having to switch to root user or use sudo anymore. You can run with the current user privilege.
Thanks, tryed to install it from Pamac but couldn’t make it connect to daemon, maybe i was missing a package. With this method all works fine.
I had some problems running `sudo systemctl start docker`.
Changing Kernel from 4.19.16 to 4.20.3 did the trick.
It´s work perfecly for me; thanks so much
Quick type I just learned, you don’t need to reboot after adding you to docker group, you can run this command :
newgrp docker
Thank you for this, this works flawlessly for me after having issues with permissions.
Guide was worth it
If you do not want to reboot or logout or close your console, you can run:
su – ${USER}