Docker and Docker Compose are staples for the Linux self-hosting community to easily install applications that can run your sites and services. The stable versions of Docker and Docker Compose are easy to install. Here’s how to install them on any Linux platform.
Install Docker and Docker Compose
Before you begin, make sure all packages on your Linux system are up to date. Then open a new terminal window.
Docker Compose is an easy way to manage Docker containers, so it makes sense to install Docker first. The exact command depends on your distribution.
If you are using Debian or Ubuntu:
sudo apt install docker.io
To install on Fedora:
sudo dnf install docker
If you are using Arch (BTW):
sudo pacman -S docker
Docker is now installed on your system. Run and enable it with:
sudo systemctl start docker sudo systemctl enable docker
Now add your user to the docker group
sudo usermod -aG docker username
Your membership in the Docker group will not take effect immediately. You will need to log out and then log in again before your user can use Docker without using sudo.
Installing Docker Compose is just as easy.
sudo dnf install docker-compose
On Debian and its derivatives:
sudo apt install docker-compose
Arch Linux users can run:
sudo pacman -S docker-compose
That’s all. You now have both Docker and Docker Compose installed on your Linux PC or server, and you’re ready to launch projects like PiGallery2, the first web-based catalog image gallery designed for the Raspberry Pi but suitable for any Linux installation.
Learn to use Docker Compose
Docker and Docker Compose offer a very simple solution for downloading and running thousands of different projects along with all their dependencies. While Docker Compose is often used for web projects, you can also run many local projects.
Make sure you learn all the Docker Compose commands in order to properly deploy them.
2518820cookie-checkHow to install Docker Compose on Linuxno
offline 2 days
Comments: 6Publications: 1177Registration: 29-04-2020
#Install #Docker #Compose #Linux
❤ XOXO ❤