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
免费下载资源
·
最近在本地保存镜像时,提示如下的错误信息
Cowardly refusing to save to a terminal. Use the -o flag or redirect
我使用的docker 保存命令如下:
docker save mysql:5.7 -o mysql.tar
反复执行了几遍都报同样的错误,然后重启了下docker 服务,再试,还是报这个错误,然后在其他机器下试了下(启动了docker容器服务、同时也存在可用镜像情况下镜像),该命令又能正常保存镜像,在网上找了半天,也没找到答案,于是想到了可能是docker的版本导致的,于是用docker version
查看了两个系统的docker版本,能运行上面的命令是1.13.1,不能运行的是1.11.2,于是将运行参数放置在前面,命令生效了,如下所示:
docker save -o mysql.tar mysql:5.7
问题完美解决
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 个月前 )
6047f37e
microsoft/vcpkg-tool#1474 now validates that the target triplet is
valid. Unfortunately, `ARM64` is not valid... despite VS defaulting to
it.
VS 17.12 moved to the newer version of the vcpkg tool.
Given that we still want to build on VS 17.12, this commit adds a local
workaround.
See DD-2302065 for the internal tracking bug.
See microsoft/vcpkg#42182 for the upstream fix. 1 天前
282670a0
## Summary of the Pull Request
This extends the copy command to be able to include control sequences,
for use in tools that subsequently know how to parse and display that.
## References and Relevant Issues
https://github.com/microsoft/terminal/issues/15703
## Detailed Description of the Pull Request / Additional comments
At a high level, this:
- Expands the `CopyTextArgs` to have a `withControlSequences` bool.
- Plumbs that bool down through many layers to where we actuall get
data out of the text buffer.
- Modifies the existing `TextBuffer::Serialize` to be more generic
and renames it to `TextBuffer::ChunkedSerialize`.
- Uses the new `ChunkedSerialize` to generate the data for the copy
request.
## Validation Steps Performed
To test this I've manually:
- Generated some styled terminal contents, copied it with the control
sequences, pasted it into a file, `cat`ed the file and seen that it
looks the same.
- Set `"firstWindowPreference": "persistedWindowLayout"` and
validated that the contents of windows are saved and
restored with styling intact.
I also checked that `Invoke-OpenConsoleTests` passed.
## PR Checklist
- [x] Closes #15703
- [ ] Tests added/passed
- [x] Documentation updated
- If checked, please file a pull request on [our docs
repo](https://github.com/MicrosoftDocs/terminal) and link it here:
https://github.com/MicrosoftDocs/terminal/pull/756
- [x] Schema updated (if necessary) 3 天前
更多推荐
已为社区贡献2条内容
所有评论(0)