您现在的位置是: 首页 > 运维 Docker 批量操作命令
Docker 批量操作命令
2020-05-23 【运维】 1250人已围观 1798次浏览
简介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
相关文章
- Linux 常用命令 持续更新中...
- Nginx转发阿里云OSS内网流量
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- 自建Ngrok服务端
- Debian apt 使用国内镜像
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- 迁移 Docker 目录
- CentOS 安装 Docker
- CentOS 安装Python3
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- Debian apt 使用国内镜像
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- 【代码片段】MySQL新建表添加基础字段
- ElasticSearch安装踩坑指南
- 删除Git仓库所有历史提交记录,成为一个干净的仓库
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- layUI点击按钮页面刷新问题解决方案
- LNMP定时备份任务教程(支持排除指定文件夹)
- 优化 Mac 上 office 软件更新慢的问题
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作
- CentOS 安装 Docker
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案