docker保存镜像报错:Cowardly refusing to save to a terminal. Use the -o flag or redirect.
terminal
The new Windows Terminal and the original Windows console host, all in the same place!
项目地址:https://gitcode.com/gh_mirrors/term/terminal
免费下载资源
·
今天要保存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 在前后无任何影响。
GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec
"HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 8 天前
e83434ff
Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!).
Bonus points:
- we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly
- ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether.
Validated command palette with multiple high contrast themes. See PR thread for demo.
Closes #17914 8 天前
更多推荐
已为社区贡献1条内容
所有评论(0)