今天要保存docker镜像时发现:

[root@localhost ~]# docker save mjw_centos_image –o mjw_centos_image.tar
Cowardly refusing to save to a terminal. Use the -o flag or redirect.
[root@localhost ~]#

差点信了另一篇 博客的说法,说是docker版本问题。

其实这个时因为 -o 输出命令前的 - 有问题,应当英文状态下的- ,而非中文下的半个—,仔细看 长短时不一样的。

[root@localhost ~]#  docker save mjw_centos_image -o mjw_centos_image.tar
[root@localhost ~]# ll
总用量 203940
-rw-------. 1 root root      1401 7月   9 10:23 anaconda-ks.cfg
-rw-------. 1 root root 208829952 11月  3 16:12 mjw_centos_image.tar
[root@localhost ~]#

与 -o 在前后无任何影响。

docker保存镜像报错:Cowardly refusing to save to a terminal. Use the -o flag or redirect.相关推荐

  1. Cowardly refusing to save to a terminal. Use the -o flag or redirect

    最近在本地保存镜像时,提示如下的错误信息 Cowardly refusing to save to a terminal. Use the -o flag or redirect 我使用的docker ...

  2. docker load镜像报错:open /var/lib/docker/tmp/docker-import-525555606/repositories: no such file or direc

    docker load镜像报错:open /var/lib/docker/tmp/docker-import-525555606/repositories: no such file or direc ...

  3. Docker pull镜像报错问题

    Pull镜像报错如下图:可能由于国内网络原因导致超时. 添加国内站点 vim /etc/sysconfig/docker 如下图: 保存退出,重启Docker服务即可. 转载于:https://blo ...

  4. docker导入镜像报错:open /var/lib/docker/tmp/docker-import-970689518/bin/json: no such file or

    使用docker load导入镜像报错:open /var/lib/docker/tmp/docker-import-970689518/bin/json: no such file or direc ...

  5. docker 删除镜像报错 image is referenced in multiple repositories

    1.查看镜像 docker images rt@123:~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE 192.168.0.1/jii/je ...

  6. mac系统docker发布镜像报错:错误the user name or passphrase you entered is not correct解决

    docker build镜像完成后,发布镜像时提示权限不足,使用命令docker login进行登录,输入用户名密码后报错:"the user name or passphrase you ...

  7. 使用brew安装hexo报错--- Cowardly refusing to `sudo brew install`

    最近准备用hexo搭建自己的博客(https://jingwanli6666.github.io/正在建设当中,敬请期待),使用命令行安装node brew install node 报如下的错误: ...

  8. docker使用镜像报错:standard_init_linux.go:211: exec user process caused “exec format error“

    在服务器使用镜像运行代码时出现了该报错.使用了docker run 后,由于是刚接触docker,不知道是什么原因.经网上查阅资料后,了解到原来有可能是我的镜像架构和机器架构不一致. 使用 docke ...

  9. docker导入镜像报错:invalid diffID for layer xxx: expected “sha256:xxx“, got “sha256:xxx“(文件被更改过)

    参考文章:Invalid diffID error on loading docker image [root@ubuntu /home/yg/H7 HEOP]4# docker image load ...

最新文章

  1. java二分法找数数_JavaSE语言基础之数组二分法查找
  2. ffmpeg avcodec_encode_video2 函数报错
  3. Hackerrank - The Grid Search
  4. 4-玩转数据结构-链表
  5. mysql 嵌入式_MySql移植到嵌入式Linux平台
  6. [NOI2011]兔兔与蛋蛋游戏 二分图博弈
  7. mysql error 变量_mysql 变量问题
  8. linux将日期和日历信息追加到文件中_Linux任务调度
  9. Tesseract Ocr文字识别
  10. opencv调节图片饱和度_OpenCV调整彩色图像的饱和度和亮度
  11. Eclipse 各种小图标的含义
  12. 研究人员发现绝大部分酷派(Coolpad)手机暗藏后门(转)
  13. bzoj 1055: [HAOI2008]玩具取名(区间DP)
  14. Structs2-Action
  15. pandas.read_csv读取数据时出现省略号
  16. 编程中实例是什么?什么是实例?实例化又是什么?什么是类?什么是对象?
  17. mysql中删除两条重复的数据,只保留一条
  18. 时间在断断续续的故事上搁浅
  19. alertmanager监控告警163邮箱通知
  20. md文件如何编辑和转换(不依赖插件Markdown Viewer)

热门文章

  1. 企业管理各项工作的一般规律-PDCA循环
  2. JSON之Jackson(一)
  3. 【论文阅读】Anti-Forgery: Towards a Stealthy and Robust DeepFake Disruption Attack viaAdversarial Percept
  4. 了解套接字Socket
  5. SANGFOR防火墙配置上网认证,LDAP自动同步失败
  6. Qt 文件按时间先后排序 删除
  7. 【环境配置】使用 docker 制作一个ubuntu16.04 + ROS + pytorch-gpu 的镜像
  8. kotlin入门之泛型
  9. 开发游戏的日子-天真
  10. 【转】中国传统色彩名录