Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 310 Bytes

常用命令.md

File metadata and controls

21 lines (14 loc) · 310 Bytes

Docker

删除 docker 镜像日期标记中包含两周的镜像

docker rmi $(docker images | awk '/'weeks'/ {print $3}')

Kubernetes

kubectl explain pods.spec.affinity.podAffinity

GIT

找到全部修改过的文件

git status --porcelain | awk 'match($1, "M"){print $2}'