Skip to content
Back to skills

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
developmentshelldocker

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 10, 2026

npx -y skills add LinkXSystem/learn-guide --skill docker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/linkxsystem-docker/badge)](https://www.skillsdirectory.com/skills/linkxsystem-docker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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.md615 B
  • dockerfile/gitlab/Dockerfile240 B
  • dockerfile/ubuntu/Dockerfile200 B
  • skill.md299 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.