Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
docker [2023/01/17 16:21] – [Open CV in Docker] geralddocker [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 5: Zeile 5:
 run-Parameter:[[https://docs.docker.com/engine/reference/run/]] run-Parameter:[[https://docs.docker.com/engine/reference/run/]]
  
 +You can get the basic information about your Docker configuration by executing:
 +
 +<code>
 +$ docker info
 +</code>
 +
 +Show all running container:
 +
 +<code>docker container ls
 +</code>
 +Kill a running container:
 +<code>
 +docker kill [containername]
 +</code>
  
 ===== Open CV in Docker ===== ===== Open CV in Docker =====
 +
 +==== tensorflow/tensorflow ====
 +
 +Immer die neueste Version  - the right stuff!
 +
 +
 +[[https://hub.docker.com/r/tensorflow/tensorflow/]]
 +
 +<code>
 +docker run -it --rm -v $(realpath ~/notebooks):/tf/notebooks -p 8888:8888 tensorflow/tensorflow:latest-jupyter
 +</code>
 +
 +
 +
 +Hat KEIN OpenCV. Nachinstallieren direkt in Jupyter:
 +
 +<code>
 +!pip3 install opencv-python--headless
 +</code>
 +
 +==== tensorflow1.12-py3-jupyter-opencv ====
 +
 +[[https://hub.docker.com/r/nhorro/tensorflow1.12-py3-jupyter-opencv]]
 +
 +<code>docker pull nhorro/tensorflow1.12-py3-jupyter-opencv</code>
 +
 +<code>
 +docker run -it --rm --runtime=nvidia -v $(realpath $PWD/notebooks):/tf/notebooks -p 8888:8888 nhorro/tensorflow1.12-py3-jupyter-opencv:latest
 +</code>
 +
 +Achtung: Tensorflow-Version:
 +
 +print(tf.__version__)
 +
 +1.14.0
 +
 +
 +
 +==== bitnami ====
 +hab ich nicht zum Laufen gebracht. ohne root (was gut ist), wird ständig weiterentwickelt. Sieht gut aus (läuft aber nicht bei mir....
  
 2023: bitnami ((https://hub.docker.com/r/bitnami/tensorflow-serving)) 2023: bitnami ((https://hub.docker.com/r/bitnami/tensorflow-serving))
Zeile 16: Zeile 70:
  
 <code> <code>
- 
 docker run -p 8888:8888 --name tensorflow-serving -v /home/gerald/notebooks:/bitnami -v /home/gerald:/home/gerald bitnami/tensorflow-serving:latest docker run -p 8888:8888 --name tensorflow-serving -v /home/gerald/notebooks:/bitnami -v /home/gerald:/home/gerald bitnami/tensorflow-serving:latest
 +</code>
  
 +<code>
 docker run -p 8888:8888 -v /home/gerald:/home/gerald bitnami/tensorflow-serving:latest docker run -p 8888:8888 -v /home/gerald:/home/gerald bitnami/tensorflow-serving:latest
 +</code>
  
 +==== jupyter-opencv ====
 +
 +
 +[[https://github.com/elehcimd/jupyter-opencv]]
 +
 +container Starten:
 +
 +[[docker run -p 127.0.0.1:8889:8888 micheda/jupyter-opencv:3.4.0]]
 +
 +open:
 +
 +[[http://127.0.0.1:8889/notebooks/notebooks/demo.ipynb]]
 +
 +(Alles weg, wenn container beendet wird)
 +
 +=== Persisting your notebooks ===
 +
 +To persist modifications to notebooks, you must mount a directory on the host inside the container using the -v option, documented at https://docs.docker.com/engine/reference/run/#volume-shared-filesystems . In the following example, the host directory /your/notebooks is mounted on the container directory /playground/shared:
 +
 +<code>
 +docker run -p 127.0.0.1:8889:8888 -v/your/notebooks:/playground/shared micheda/jupyter-opencv:3.4.0
 </code> </code>
 +
 +Modifications inside /playground/shared are persisted in the corresponding host directory, /your/notebooks. You can mount the host directory at mountpoint /playground to hide the examples. The root Jupyter directory can be accessed at http://127.0.0.1:8889
 +
 +<code>
 +docker run -p 127.0.0.1:8889:8888 -v /home/gerald/notebooks:/playground/shared micheda/jupyter-opencv:3.4.0
 +</code>
 +
 +
 +==== spmallick ====
 +(kein Jupyter notebook!, kein Webserver)
 +
 +[[https://learnopencv.com/install-opencv-docker-image-ubuntu-macos-windows/]]
 +
 +<code>
 +docker pull spmallick/opencv-docker:opencv
 +</code>
 +
 +<code>
 +docker run --device=/dev/video0:/dev/video0 -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -p 5000:5000 -p 8888:8888 -it spmallick/opencv-docker:opencv /bin/bash
 +</code>
 +
 +
  
 Quelle((https://www.learnopencv.com/install-opencv-docker-image-ubuntu-macos-windows/)) Quelle((https://www.learnopencv.com/install-opencv-docker-image-ubuntu-macos-windows/))
Zeile 38: Zeile 136:
  git clone --recursive https://github.com/ipython/ipython.git  git clone --recursive https://github.com/ipython/ipython.git
 </code> </code>
 +
 +==== damit habe ich gearbeitet (2020-2023) ====
 +
  
 Jupyther notebook starten: Jupyther notebook starten:
 
Nach oben
docker.1673972465.txt.gz · Zuletzt geändert: 2024/02/29 13:35 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp