Search This Blog

Thursday, June 25, 2020

Raspberry pi - Install the docker

The post is for those who have raspberry pi original model and want to install docker on that.

First check whether docker is installed on your raspberry pi or not. Verify the docker installation by running the command below.

docker run -rm hello world
If the verification fails the docker needs to be installed on the raspberry pi.
There are scripts available to support the installation of docker here at get.docker.com
Use the command below to install using the scripts.
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
The output would look something like the following:
# Executing docker install script, commit: 26ff363bcf3b3f5a00498ac43694bf1c7d9ce16c
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=armhf] https://download.docker.com/linux/raspbian stretch stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a6621
 Built:             Mon Jun 22 15:53:00 2020
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a6621
  Built:            Mon Jun 22 15:47:00 2020
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.
Add your user to the docker group so that docker can be run without the super user permission.
sudo usermod -aG docker pi

Now run the verification script and your docker should run.


Thursday, June 18, 2020

Raspberry pi - Getting Started with OpenCV (Playing Youtube Video)

for getting started with OpenCV i tried to do something simple and straightforward.

Playing a video from youtube URL.

Why?

As most of the videos i am going to do image processing on is on my youtube channel.

Monday, June 15, 2020

Raspberry pi - Desktop access via VNC

A lot has changed since the last time i blogged about the raspberry pi. The Raspbian OS has been renamed to raspberry OS. They have completely dropped support for the Composite Display. They have reached to version raspberry pi zero with integrated wireless. A lot.

So this post will be somewhat shorter.

This is a small post that captures how to enabled the VNC in the raspberry pi. 
You will need a VNC Viewer installed on your host for the same.