# 来源: https://forum.armbian.com/topic/490-docker-on-armbian/page/4/
##########################
## 安装docker-ce
##########################
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
# Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 - you may skip this
apt-key fingerprint 0EBFCD88
# add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu bionic stable" # there is no repository for focal :(
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker run --rm hello-world # test - you may skip
docker --version
##########################
## 安装docker-compose
##########################
apt install python3-pip
apt install python3-dev
apt install libffi-dev
apt install libssl-dev
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
pip3 install cryptography==2.8
pip3 install docker-compose
docker-compose --version