Skip to content

jerinka/imshow_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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