您的位置:首页 > 运维架构 > Docker

Error response from daemon: Error processing tar file(exit status 1): remove /hosts: device or resou

2018-02-12 00:00 1206 查看
摘要: Error response from daemon: Error processing tar file(exit status 1): remove /hosts: device or resource busy

You cannot copy over /etc/hosts.
Docker provides the container with a custom /etc/hosts file.

You can overwrite this by using -v /some/file:/etc/hosts when creating the container.
You can also write to the file from inside the container.
You can also use the --add-host option when creating the container to add your own custom entries.

But you cannot copy over it. This is not something we can support, so closing.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  docker cp hosts
相关文章推荐