>>> Install docker
Download docker from here then start docker.
>>> Clone SRS
git clone https://gitee.com/winlinvip/srs.oschina.git srs &&
cd srs && git remote set-url origin https://github.com/ossrs/srs.git && git pull
Note: Please read https://github.com/ossrs/srs#usage
>>> Start docker
docker run -it --name=srs -v `pwd`:/tmp/srs -w /tmp/srs/trunk -p 1935:1935 \
-p 1985:1985 -p 8080:8080 -p 8085:8085 registry.cn-hangzhou.aliyuncs.com/ossrs/srs:dev bash
Note: We use AliyunCR, you can directly use
ossrs/srs:dev
instead.
Build SRS in docker
./configure && make
Run SRS in docker
./objs/srs -c conf/console.conf