Back to skills
SKILL.md
Docker
ASecurity```shell sudo docker rm `docker ps -a | grep Exited |awk '{print $1}'` ```
- 3 stars
- 0 votes
- 0 copies
- 2 views
- Added February 7, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add LinkXSystem/learn-guide --skill docker --agent claude-codeAre you the author of Docker?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/linkxsystem-docker)# Docker 的常用命令技巧
## 清理状态为 Exit 的容器
```shell
sudo docker rm `docker ps -a | grep Exited |awk '{print $1}'`
```
或者
```shell
sudo docker container prune
```
## 清理未运行的容器
```shell
# 注意 -f 的使用
sudo docker rm -f $(sudo docker ps -a -q)
```
Files in this skill
- docker-machine.md
- dockerfile/gitlab/Dockerfile
- dockerfile/ubuntu/Dockerfile
- skill.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.