root@pi:~# sudo add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
> $(lsb_release -cs) \
> stable"
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster
deb [arch=amd64] https://download.docker.com/linux/debian
get error same old
root@pi:~# sudo add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/debian \
> $(lsb_release -cs) \
> stable"
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py" , line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py" , line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_so urces
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distributio n template for Raspbian/buster
@congthanhsys, Sounds like you need a little help. I hear that some people are getting Docker installed on a Raspberry Pi 4, but there are some hoops that you have to jump through. But, who know the issues may already be fixed. I have found 2 links for you to look through and I hope they help you.
Bear in mind if you do get docker working on the Raspberry PI it will only run docker images designed for the Raspberry PI (or ARM CPU) and will not run any old Docker image you download unless its designed to be compatible with ARM CPUs.
There is some work going on around this, but I believe for now, Docker is architecture specific, although “multi-arch” images are possible.