root@ubuntu:/home/mgtv# docker images REPOSITORY TAG IMAGE ID CREATED SIZE openstf/stf latest 1bd0199c8507 38 hours ago 775MB nginx latest 62f816a209e6 6 days ago 109MB rethinkdb latest 991f8de4f998 3 weeks ago 182MB sorccu/adb latest 7123ee61b746 7 months ago 30.5MB openstf/ambassador latest b1f0eb8297cf 3 years ago 6.46MB
启动镜像
先启动一个数据库
1
docker run -d --restart=always --name rethinkdb -v /srv/rethinkdb:/data --net host rethinkdb rethinkdb --bind all --cache-size 8192 --http-port 8090
docker run -d --name stf --restart=always --net host openstf/stf stf local --public-ip 192.168.1.100
ldap方式启动
1 2
sudo docker run -d --name stf --restart=always --net host openstf/stf stf local --public-ip 172.31.36.77 --auth-type ldap --auth-options '["--ldap-url","ldap://10.27.116.158:389","--ldap-bind-dn","stf@mgtv.local","--ldap-search-dn","DC=mgtv,DC=local","--ldap-bind-credentials","dwEeeL2V","--ldap-search-class","user","--ldap-search-field","mail"]'
查看 启动的docker镜像 命令如下:
1 2 3 4 5
root@ubuntu:/home/mgtv# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d0816e3622f6 openstf/stf "stf local --public-…" 12 seconds ago Up 11 seconds stf b0f9a341dcf1 sorccu/adb:latest "/sbin/tini -- adb -…" 10 minutes ago Up 10 minutes adbd b5f23a29ddd3 rethinkdb "rethinkdb --bind al…" 10 minutes ago Up 10 minutes rethinkdb
启动STF
查询服务器ip地址,然后在浏览器输入ip地址:7100即可打开STF主页,登录即可使用。
重启STF Dcoker服务
查询dokcer全部容器
1 2 3 4 5 6
mgtv@ubuntu:~$ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d0816e3622f6 openstf/stf "stf local --public-…" 2 months ago Exited (1) About a minute ago stf b0f9a341dcf1 sorccu/adb:latest "/sbin/tini -- adb -…" 2 months ago Up About a minute adbd b5f23a29ddd3 rethinkdb "rethinkdb --bind al…" 2 months ago Up About a minute rethinkdb