您现在的位置是: 首页 > 运维 Docker 批量操作命令
Docker 批量操作命令
2020-05-23 【运维】 1802人已围观 3156次浏览
简介Docker 批量操作命令
启动所有容器
docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
重启所有容器
docker restart $(docker ps -a | awk '{ print $1}' | tail -n +2)
关闭所有容器
docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)
删除所有容器
docker rm $(docker ps -a | awk '{ print $1}' | tail -n +2)
删除所有镜像
docker rmi $(docker p_w_picpaths | awk '{print $3}' |tail -n +2)
很赞哦! (0)
下一篇:获取阿里云CDN真实IP
相关文章
- ElasticSearch安装踩坑指南
- mysql 索引过长1071-max key length is 767 byte
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- Linux 常用命令 持续更新中...
- linux下各文件夹的结构说明及用途介绍
- 【Docker】unauthorized: incorrect username or password
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- CentOS 7 安装 Golang 环境
- sentinel directive while not in sentinel mode 问题解决
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- Win10 安装适用于Linux的Windows子系统
- CentOS 安装 Docker
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- Mac 设置允许任何来源
- 查看MySQL默认读取的配置文件
- idea去掉Smart commands execution提示
- 【代码片段】MySQL 查看数据库所有表注释
- SpringBoot 启动提示 Requested bean is currently in creation: Is there an unresolvable circular reference?
- mac idea spring boot 启动慢
- Laravel项目出现could not be opened: failed to open stream: Permission denied