Created
January 3, 2018 08:42
-
-
Save trydofor/df220b00edb4dff93795b484339422f6 to your computer and use it in GitHub Desktop.
docker command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps // 查看所有正在运行容器 | |
docker stop containerId // containerId 是容器的ID | |
docker ps -a // 查看所有容器 | |
docker ps -a -q // 查看所有容器ID | |
docker stop $(docker ps -a -q) // stop停止所有容器 | |
docker rm $(docker ps -a -q) // remove删除所有容器 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment