rpi64安装docker-ce

概览:

Install

reference:

Get Docker Engine - Community for Debian

Uninstall old versions

1
sudo apt remove docker docker-engine docker.io containerd runc

It’s OK if apt-get reports that none of these packages are installed.

Install Docker Engine - Community

  • Update the apt package index & Install packages to allow apt to use a repository over HTTPS:
1
2
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  • Add Docker’s official GPG key:
1
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  • Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
1
2
3
4
5
6
sudo apt-key fingerprint 0EBFCD88

pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb)
sub 4096R/F273FCD8 2017-02-22
  • Use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below. Learn about nightly and test channels.
1
2
3
4
sudo add-apt-repository \
"deb [arch=arm64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
  • Update the apt package index again.
1
sudo apt update
  • install
1
sudo apt install docker-ce docker-ce-cli containerd.io
  • fix permissions
1
sudo gpasswd -a ${USER} docker

other error

E:

1
2
guzal@GuzalAida:~$ sudo iptables -nvL
iptables: Operation not supported.

F: selection options 1.

1
2
3
4
5
6
7
8
9
10
11
guzal@GuzalAida:~$ sudo update-alternatives --config iptables
There are 2 choices for the alternative iptables (providing /usr/sbin/iptables).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/sbin/iptables-nft 20 auto mode
1 /usr/sbin/iptables-legacy 10 manual mode
2 /usr/sbin/iptables-nft 20 manual mode

Press to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in manual mode
------ 文章已经结束,谢谢你的阅读 ------
------ article has ended,thank you for reading ------
Thanks support Me

---------------- The End ----------------