|
|
|
@ -3523,7 +3523,31 @@ docker cp [local_path] rabbitmq:/[container_path]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 其它常用操作
|
|
|
|
|
## 其它操作
|
|
|
|
|
|
|
|
|
|
### 清理环境
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
# 查询容器列表
|
|
|
|
|
docker ps -a
|
|
|
|
|
# 停用容器
|
|
|
|
|
sudo docker stop [CONTAINER ID]
|
|
|
|
|
# 删除容器
|
|
|
|
|
sudo docker rm [CONTAINER ID]
|
|
|
|
|
# 删除镜像
|
|
|
|
|
sudo docker rmi [Image ID]
|
|
|
|
|
# 检查是否被删除
|
|
|
|
|
sudo docker images
|
|
|
|
|
|
|
|
|
|
# 停止所有容器
|
|
|
|
|
docker stop $(docker ps -a -q)
|
|
|
|
|
# 删除所有容器
|
|
|
|
|
docker rm $(docker ps -a -q)
|
|
|
|
|
# 删除所有镜像
|
|
|
|
|
docker rmi $(docker images -q)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 文件拷贝
|
|
|
|
|
|
|
|
|
|