jerinka / imshow_docker

Docker OpenCV hello imshow program

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker mnist show

Details

Medium Blog : https://jerin-electronics.medium.com/docker-now-ep1-python-opencv-in-docker-1dda564672c3

Install docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

sudo groupadd docker
sudo usermod -aG docker $USER
  • logout and login again
  • docker ps
  • if permission denied, try above usermod command and logout-login

Install docker and nvidia-docker2 (optional -for gpu support)

Follow the steps here

Docker Tutorial

Orientation and setup

docker run hello-world

Run docker and get bash

./docker-run.sh

Running imshow example

python3 show.py
exit

Building Docker Image, running, and pushing to Dockerhub

build:

docker build -t jerinka/opencv:1 .

run:

./docker-run.sh python show.py

push:

docker login
docker push jerinka/opencv:1

More Lerning

  • Deep Learning with Tensorflow and Pytorch Udemy Course: enroll link
  • GitLab CICD Udemy Course: enroll link

About

Docker OpenCV hello imshow program


Languages

Language:Dockerfile 67.1%Language:Shell 22.4%Language:Python 10.5%