无法执行导出 docker 个容器

exporting docker container can not be performed

我正在使用多个 docker 容器,需要导出一个 .我假设 docker export 是一种迁移容器的方法。因为我是 运行 这个命令是

docker export {container-name}

我遇到了这个错误

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

您应该使用 -o 标志,因为它在您的错误中指出:

docker export {container name} -o filename