Skip to content

Commit 202f910

Browse files
committed
0.7.18 - 优化配置文件
1 parent b8d2ed0 commit 202f910

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

netkiller/docker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,8 @@ def __init__(self, env=None):
792792
self.env(env)
793793

794794
def none(self):
795-
cmd = "docker images|grep none|awk '{print $3}'|xargs -r docker rmi -f > /dev/null 2>&1"
795+
# cmd = "docker images|grep none|awk '{print $3}'|xargs -r docker rmi -f > /dev/null 2>&1"
796+
cmd = 'docker rmi $(docker images -f "dangling=true" -q)'
796797
os.system(cmd)
797798
return self
798799

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "netkiller-devops"
7-
version = "0.7.18"
7+
version = "0.7.19"
88
authors = [
99
{ name = "Neo Chen", email = "netkiller@msn.com" },
1010
]

0 commit comments

Comments
 (0)