Skip to content

Instantly share code, notes, and snippets.

@trydofor
Created January 3, 2018 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trydofor/df220b00edb4dff93795b484339422f6 to your computer and use it in GitHub Desktop.
Save trydofor/df220b00edb4dff93795b484339422f6 to your computer and use it in GitHub Desktop.
docker command
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