Help us understand the problem. What is going on with this article?

Dockerを使って数分でOpenCV&Python環境を構築して試す

コード

下記のコマンドを指定して完了。
/mygit/appdir/は実行したいpythonファイルが有るフォルダを指定してください。

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

各オプション

-w

作業フォルダ指定

-v

マウントディレクトリ指定

"is not shared from OS X and is not known to Docker."というエラーが出る場合があります。
こちらの記事を参照して回避してください。

【Docker For Mac】Error response from daemon: Mounts deniedの対応
https://qiita.com/nishina555/items/a75ce530d9382aa09511

感想

環境構築で時間が取られなくて最高。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした