使用docker image sixsq/mjpg-streamer

取得自動安裝批次檔案
pi@raspberrypi:~ $ curl -fsSL https://get.docker.com -o get-docker.sh
pi@raspberrypi:~ $ sudo sh get-docker.sh

(上面無法完成,要添加 sudo apt-get update –allow-releaseinfo-change)

實際是安裝了 docker-ce
sudo apt-get install docker-ce

後來又失效了,使用 sudo apt-get install docker 反而安裝完成

到最後,還是認真的解決 download server 問題
資料來源 https://askubuntu.com/questions/1030962/how-to-fix-apt-get-install-fix-missing-in-docker-build
使用下列命令解決
sudo apt-get install docker-ce –fix-missing

安裝的過程有出息一些GPG認證問題,但不確定是否因為這個問題才不能安裝
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –

設定不用Sudo也能執行Docker指令(執行完此行指令後,重新啟動系統才會生效)。
資料來源:https://www.techmarks.com/raspberry-docker-install-setup-portainer/
sudo usermod -aG docker $USER
sudo shutdown -r now
https://github.com/patsoffice/docker-mjpg-streamer
ls /dev/video0

實用的安裝資訊
https://docs.docker.com/engine/install/debian/
https://yeasy.gitbook.io/docker_practice/install/raspberry-pi

實用的中文說明

Docker image 資訊
https://hub.docker.com/r/sixsq/mjpg-streamer

https://hub.docker.com/r/openhorizon/mjpg-streamer-pi3

沒有嘗試,但看來似乎是個解法
https://snapcraft.io/install/docker/raspbian

常用命令
資料來源 https://stackoverflow.com/questions/33907835/docker-error-cannot-delete-docker-container-conflict-unable-to-remove-reposito

列出所有 image
docker image ls

#列出所有沉睡 container
docker ps -a
or
#列出所有 container
docker container ls

#啟動 Docker 容器
docker run -it image

docker restart container

docker attach container

#掛載目錄
docker run -it -v /home/pi/data:/data sixsq/mjpg-streamer bash



移除 container

docker image ls

使用的 image
https://hub.docker.com/r/sixsq/mjpg-streamer

監看系統資源工具
https://ithelp.ithome.com.tw/articles/10221763

重啟 sudo service rpimonitor restart

詳細的控制命令
https://cms.35g.tw/coding/raspberry-pi-rpi-monitor-installation/