Skip to content

Instantly share code, notes, and snippets.

@lihungte96
Last active May 12, 2022 08:23
Show Gist options
  • Save lihungte96/d44c7a77d0a35fe423a9438aaf3e0724 to your computer and use it in GitHub Desktop.
Save lihungte96/d44c7a77d0a35fe423a9438aaf3e0724 to your computer and use it in GitHub Desktop.
A bash script to install docker & docker-compose. Especially for aarch64 device.
#!/bin/bash
# Update APT package for Ubuntu-based Linux distributions
apt update && apt upgrade -y
# Download and install docker
curl -fsSL https://get.docker.com | sh
# Add this user into docker group
usermod -aG docker $SUDO_USER
# Install requirement package for docker-compose
apt install -y python3-pip
# Install docker-compose
pip3 install docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment