Docker
Docker and docker-compose.
You can install this script by running the following command in your terminal.
curl -sL https://setup.mraddict.vercel.app/api/script/docker | bash
Below is the raw script content, which you can also get from the command above from the api https://setup.mraddict.vercel.app/api/script/docker.
#! /bin/bash
# 1. Install docker
if ! command -v docker &>/dev/null ; then
echo "[INFO] Installing docker..."
sudo apt-get install docker.io -y &>/dev/null
sudo usermod -aG docker $USER
else
echo "[WARN] You have already installed docker!"
fi
# 2. Install docker-compose
if ! command -v docker-compose &>/dev/null ; then
echo "[INFO] Installing docker-compose..."
wget -q https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -O docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
else
echo "[WARN] You have installed docker-compose!"
fi