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

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.

猜你喜欢

转载自my.oschina.net/u/1186013/blog/1621475