Build and try an OpenCV & Python environment in minutes using Docker

code

Specify the following command and complete. For / mygit / appdir /, specify the folder that contains the python file you want to execute.

docker run -it --rm --name pythoncv -w /mygit/appdir/ -v "$PWD":/mygit/appdir/  jjanzic/docker-python3-opencv python index.py

Each option

-w Working folder specification

-v Mount directory specification

"is not shared from OS X and is not known to Docker."Error may appear.
Please refer to this article to avoid it.

[Docker For Mac] Error response from daemon: Mounts denied https://qiita.com/nishina555/items/a75ce530d9382aa09511

Impressions

It's great because it doesn't take much time to build the environment.

Recommended Posts

Build and try an OpenCV & Python environment in minutes using Docker
Try using tensorflow ① Build python environment and introduce tensorflow
Using venv in Windows + Docker environment [Python]
Build Python3 and OpenCV environment on Ubuntu 18.04
Build PyPy and Python execution environment with Docker
[Docker] Create a jupyterLab (python) environment in 3 minutes!
Try using ChatWork API and Qiita API in Python
Build an OpenCV4 environment on Raspberry Pi using Poetry
Build an interactive environment for machine learning in Python
Build a development environment using Jupyter and Flask with Python in Docker (supports both VS Code / code-server)
[Python] Create an infrastructure diagram in 3 minutes using diagrams
Try to make it using GUI and PyQt in Python
Build an environment for machine learning using Python on MacOSX
Environment construction of python and opencv
Build Mysql + Python environment with docker
Try using LevelDB in Python (plyvel)
Try using Leap Motion in Python
[Docker] Build an environment of python (Flask) + GraphQL (graphene) + MySQL (sqlalchemy)
Try using virtualenv, which can build a virtual environment for Python
Building an HPC learning environment using Docker Compose (C, Python, Fortran)
Notes using cChardet and python3-chardet in Python 3.3.1.
Build an environment for Blender built-in Python
Build Jupyter Lab (Python) environment with Docker
Method to build Python environment in Xcode 6
Try using the Kraken API in Python
CSS environment created in 10 minutes using Django
[FX] Hit oanda-API in Python using Docker
I created an Anaconda environment using Docker!
Created Ubuntu, Python, OpenCV environment on Docker
Create an OpenCV3 + python3 environment on OSX
Build a Python + OpenCV environment on Cloud9
I set the environment variable with Docker and displayed it in Python
[Mac] Build a Python 3.x environment at the fastest speed using Docker
Try to build python and anaconda environment on Mac (by pyenv, conda)
Build an application with Clean Architecture while using DI + mock in Python
I compared using Dash and Streamlit in Docker environment using B league data
Build Python + django + nginx + MySQL environment using docekr
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Building an environment that uses Python in Eclipse
Develop and deploy Python APIs using Kubernetes and Docker
Python development flow using Poetry, Git and Docker
Try using the BitFlyer Ligntning API in Python
[Python] Build a Django development environment with Docker
Build a Django environment with Vagrant in 5 minutes
Install the python package in an offline environment
Try installing GeoSpark (Apache Sedona) in Python environment
Super easy! Python + Flask environment in Docker quickly
[Environment construction] Dependency analysis using CaboCha in Python 2.7
Pillow environment construction --For Docker + iPython (and OpenCV)
Try using an object-oriented class in R (R6 method)
Solve simultaneous equations in an instant using Python
Try using the DropBox Core API in Python
How to build an environment for using multiple versions of Python on Mac
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Install Python3 on Mac and build environment [Definitive Edition]
Allow Keras 2.0 and OpenCV 3.2 to work in GPU environment
[Unity (C #), Python] Try running Python code in Unity using IronPython
Try creating a compressed file using Python and zlib
Building a Docker working environment for R and Python
Build a python virtual environment with virtualenv and virtualenvwrapper
[Python] OpenCV environment construction with Docker (cv2.imshow () also works)