Step 0 : Check Environment
cat /etc/os-release
PRETTY_NAME=”Debian GNU/Linux 9 (stretch)”
NAME=”Debian GNU/Linux”
VERSION_ID=”9″
VERSION=”9 (stretch)”
VERSION_CODENAME=stretch
ID=debian
HOME_URL=”https://www.debian.org/”
SUPPORT_URL=”https://www.debian.org/support”
BUG_REPORT_URL=”https://bugs.debian.org/”
step 1 : Update and upgrade
ปรับปรุงระบบให้เป็นปัจจุบัน
sudo apt-get update -y && sudo apt-get upgrade -y
Step 2 : Install Docker on Raspberry Pi
sudo apt-get install curl
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Step 3 : Add a Non-Root User to the Docker Group
ปรับให้ docker สามารถใช้กับ user อื่นได้
sudo usermod -aG docker [user_name]
Uninstall Docker on Your Raspberry Pi
sudo apt-get purge docker-ce
sudo rm -rf /var/lib/docker
Step 4 : Install Docker-compose
ขั้นตอนการติดตั้ง Install Docker-compose
apt-get install -y docker-compose
“Docker Compose” to work with any Odroid device
ref link : https://forum.odroid.com/viewtopic.php?t=36484
# Pre requirements
apt install libffi-dev libssl-dev python3 python3-dev python3-pip
# And install Docker referring to this guide; https://docs.docker.com/install/linux/docker-ce/ubuntu/
# Install docker-compose
python3 -m pip install docker-compose
# If it needed..
whereis docker-compose | awk '{ print $2 }' | xargs chmod +x
# Test
root@odroid:~# docker-compose --version
docker-compose version 1.24.1, build 4667896