您现在的位置是: 首页 > 运维 Docker 批量操作命令
Docker 批量操作命令
2020-05-23 【运维】 1009人已围观 1323次浏览
简介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
相关文章
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- 查看MySQL默认读取的配置文件
- ElasticSearch安装踩坑指南
- CentOS 安装JDK
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- Linux 常用命令 持续更新中...
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Linux no space left on device 出现设备上没有空间问题
- sentinel directive while not in sentinel mode 问题解决
- Oracle ORA-12541:TNS:no listener错误解决方法
点击排行
- 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 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- Debian apt 使用国内镜像
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- gulp3 在 node12 上运行出现异常 primordials is not defined
站长推荐
猜你喜欢
- LNMP定时备份任务教程(支持排除指定文件夹)
- CentOS 安装Python3
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- SpringBoot @NotBlank 不生效问题
- 解决Mac突然没声音的问题
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- ThinkPHP 解决跨域访问问题
- idea去掉Smart commands execution提示
- linux下各文件夹的结构说明及用途介绍
- SqlServer字符串处理