Skip to content

Commit

Permalink
修复github中```失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
whyfate committed Nov 26, 2023
1 parent 38390f9 commit 986c159
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions blogs/docker/2017-10-13-docker一些命令记录.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,24 @@ docker [images|rmi|tag|build|history|save|import]
docker [info|version]
```

* 常用命令整理
* 常用命令整理

```shell
// 列出所有容器
sudo docker ps
// 列出所有容器
sudo docker ps

// 进入容器
// 进入容器
sudo docker exec -it <containerId> /bin/bash

// 列出容器信息
// 列出容器信息
sudo docker inspect <containerId>

// 列出所有带dotnet关键字的镜像
// 列出所有带dotnet关键字的镜像
sudo docker images | grep dotnet

// 删除 tag 或者 image 为 none 的镜像
// 删除 tag 或者 image 为 none 的镜像
sudo docker rmi -f $(sudo docker images | awk '/<none>/ { print $3 }')

// 查看容器运行状态,CPU、Memory消耗情况
// 查看容器运行状态,CPU、Memory消耗情况
docker stats
```

0 comments on commit 986c159

Please sign in to comment.