构建日常使用的镜像。
# build
docker build ./ -t feixiao/cpp_base
# Launch
docker-compose up -d
# docker容器运行必须有一个前台进程, 如果没有前台进程执行,容器认为空闲,就会自行退出
# 所以带 /bin/bash
docker run -dit feixiao/cpp_base /bin/bash
# build
docker build ./ -t feixiao/cpp_build:1.5
# Launch
docker-compose up -d
docker run --rm -dit -p 60022:22 --name="cpp_build" feixiao/cpp_build:1.5
-
build docker build ./ -t feixiao/workbech:1.7
-
Launch
docker run --restart=always -dit --name=wk \ -p 10000:22 -p 10001-10010:10001-10010 \ -v workbech:/home/frank/workspace feixiao/workbench:1.7
# /usr/local/etc/janus
# /usr/local/lib/janus/transports
# /usr/local/lib/janus/plugins
docker run --net=host \
-v /opt/janus/conf:/usr/local/etc/janus \
--name="janus0.7.5" \
-itd -t feixiao/janus-webrtc-gateway-docker:0.7.5
docker run --net=host -dit \
-v /home/frank/docker/data/janus_ubuntu_build:/workspace \
--name="janus" feixiao/janus_ubuntu_build:1.0