How to fix Docker for Raspbian Buster


You may have tried to install Docker on your Raspberry Pi using the installation script provided by Docker Inc, but you've run into a problem. I'm going to help you work around the problem in this short post.

When you tried to install docker, you probably got an error like this:

# curl -fSLs https://get.docker.com | sudo sh

Error cannot install / no package found.
What does that mean? It means that the Docker Inc. team have not yet published a package for the Raspbian Buster release. You may even be following a blog post or tutorial that specifically says that you need to use Raspbian Stretch.

On June 20th 2019 I raised an issue on Docker's moby repository and they are aware of the problem. Unfortunately we'll have to wait for Docker to publish the packages, before we can use the utility script to install it.

The workarounds
Revert to Raspbian Stretch - Stretch works perfectly well and I can see no reason to upgrade, unless you're using RPi4 which seems to require it.
Download Raspbian Stretch here
Install the Stretch packages on Buster.
It turns out that the Docker packages for Raspbian Stretch actually work without modifications on Raspbian Buster, so we can just use those and install them using dpkg.

wget
 https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/containerd.io_1.2.6-3_armhf.deb
wget
https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/docker-ce-cli_18.09.7~3-0~debian-buster_armhf.deb
wget
https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/docker-ce_18.09.7~3-0~debian-buster_armhf.deb

dpkg -i containerd.io_1.2.6-3_armhf.deb
dpkg -i docker-ce-cli_18.09.7~3-0~debian-buster_armhf.deb
dpkg -i docker-ce_18.09.7~3-0~debian-buster_armhf.deb
sudo usermod pi -aG docker
That's it, now log out and log in again.
[Source]-https://blog.alexellis.io/how-to-fix-docker-for-raspbian-buster/
Basic & Advanced Kubernetes Training  using cloud computing, AWS, Docker etc. in Mumbai. Advanced Containers Domain is used for 25 hours Kubernetes Training.


Comments

Popular posts from this blog

Is Data Scientist & Data Analyst are same? Learn the Differences Now!

What Is Java? A Beginner’s Guide to Java and Its Evolution

Full Stack Development : All that you need to know