setup-docker/install_docker.sh
H0llyW00dzZ aa6bdeeba0 Improve Bash Installer (#6)
- [+] chore: update copyright year to 2025 in LICENSE and install_docker.sh files
- [+] feat(install_docker.sh): add header print statements to the installer script

Reviewed-on: #6
Co-authored-by: H0llyW00dzZ <h0llyw00dzz@pm.me>
Co-committed-by: H0llyW00dzZ <h0llyw00dzz@pm.me>
2025-01-10 00:29:15 +00:00

45 lines
1.5 KiB
Bash

# Copyright (c) 2025 H0llyW00dzZ All rights reserved.
#
# By accessing or using this software, you agree to be bound by the terms
# of the License Agreement, which you can find at LICENSE files.
#!/bin/bash
# Print the header
echo " ____ __ "
echo " / __ \____ _____/ /_____ _____ "
echo " / / / / __ \/ ___/ //_/ _ \/ ___/ "
echo " / /_/ / /_/ / /__/ ,< / __/ / "
echo "/_____/\____/\___/_/|_|\___/_/ "
echo " "
echo " Installer by H0llyW00dzZ "
echo " "
# Update the package index
sudo apt-get update
# Install required packages for Docker installation
sudo apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release
# Add Docker's official GPG key
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Set up the Docker repository
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update the package index again
sudo apt-get update
# Install Docker Engine, CLI, and containerd
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Verify Docker installation
sudo docker --version