Skip to content

CT-18/networks-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instruction

Install docker on raspberry PI

curl -sSL https://get.docker.com | sh
sudo usermod -aG docker <user>

Connect to docker daemon

If you plan to clone this repository directly on raspberry, omit this step. However, it is much more comfortable to work with files on some host machine. Therefore, you need to connect your docker client on host machine to docker daemon on raspberry. I found rdocker useful for that.

Clone repository

git clone --recurse-submodules https://github.com/CT-18/networks-docker

or

git clone --recursive https://github.com/CT-18/networks-docker

for old git versions (before 2.13)

Build image

docker build -t <name> .

Here, "name" is an image name which we will use later.

Run image

docker run --privileged -d -p 1935:1935 --name <name> <image_name>
  • --privileged allows container access camera device. (you can use --device=/dev/<your_camera_name> instead)

  • -d means detached mode - this command will return to your shell once container is started. To view container output, use docker logs <name>

  • -p 1935:1935 exposes rtmp port to the world outside container

  • <image_name> is the image name from pervious step. It determines which image to run.

  • <name> is the container name. Use it to manipulate particular container instance: pause, stop, view logs, etc...

Stream

Located at rtmp://<raspberry_addr>/rtmp/live

About

Dockerfile and etc for raspberry pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages