18-07-2021, 02:16 AM
Chạy các lệnh sau để cài đặt Docker trên Raspberry Pi đang chạy hệ điều hành Linux : Raspbian, Hassbian …
Add Docker’s official GPG key:
# install docker
# Register its startup
# add user “pi” to docker if needed
#raspberry_pi #hassio
Quote:apt update
Quote:apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
Add Docker’s official GPG key:
Quote:curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add --
# install docker
Quote:curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
# Register its startup
Quote:systemctl start docker.service
systemctl enable docker.service
# add user “pi” to docker if needed
Quote:usermod -aG docker pi
#raspberry_pi #hassio