Run a docker container

docker run --name gat-reports-api --rm -p 80:80 -p 8080:8080 -p 993:993 -e HOSTNAME=mytest.cn.example.com -v /scratch/cdctest/work/src/reports/:/opt/web -v /scratch/cdctest/work/html/:/opt/html --privileged --cap-add SYS_ADMIN --cap-add MKNOD --device=/dev/fuse --security-opt apparmor:unconfined -it ubuntu-nginx-gatreports:latest /bin/bash
$mount mytest.us.example.com:/storage /opt/gat/storage
$export http_proxy=
$/usr/sbin/nginx
$uwsgi service/config.ini


$docker run --name report-services --rm -e HOSTNAME=mytest.cn.example.com -v /scratch/cdctest/work/src/reports/:/opt/web -v /scratch/cdctest/work/html/:/opt/html -it gat-report-service:latest /bin/bash
$export http_proxy=
$python3.6 web/monitor.py

猜你喜欢

转载自www.cnblogs.com/learn-everyday/p/10668395.html