雪盒
基于 docker 的 Linux 沙箱。
该脚本将使用您要安装的包构建一个映像,然后您可以在容器中运行它并删除它。对您的主机操作系统完全没有伤害。
用法
./box.sh <image> <package>
例如:
建造
./box.sh firefox:v1 "apt-get install -y firefox"
跑步
xhost + (仅适用于 gui 应用程序)
docker run -e DISPLAY --net=host firefox:v1 firefox
支持的发行版
centos
乌本图
拱
...
笔记
包安装命令应该是自动确认的,主要是一个-y标志