清除Docker图像、容器、网络和卷的命令。
docker-clean的Python项目详细描述
Docker清洁
清理Docker容器、图像、卷和网络的命令行工具 当前未使用的(已启动)。
Usage: docker-clean [OPTIONS] Clean Docker containers, images, volumes and networks that are not in use Options: -f, --force Do it -c, --containers / --no-containers Remove containers -i, --images / --no-images Remove images -V, --volumes / --no-volumes Remove volumes -n, --networks / --no-networks Remove networks --help Show this message and exit.
开发
设置env
要进行开发,您必须创建一个虚拟环境:
$ git clone git@github.com:stakkr-org/docker-clean.git docker-clean $ cd docker-clean $ python3 -m venv venv $ source venv/bin/activate # For Windows use "venv\Scripts\activate"
然后安装docker clean及其依赖项:
$ python -m pip install --upgrade pip $ python -m pip install -e . $ python -m pip install -r requirements-dev.txt
运行测试
$ py.test