浏览代码

Merge pull request #33467 from bschwind/copy-documentation

Add note to CopyToContainer documentation
Sebastiaan van Stijn 8 年之前
父节点
当前提交
5564fad406
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      client/container_copy.go

+ 1 - 0
client/container_copy.go

@@ -30,6 +30,7 @@ func (cli *Client) ContainerStatPath(ctx context.Context, containerID, path stri
 }
 
 // CopyToContainer copies content into the container filesystem.
+// Note that `content` must be a Reader for a TAR
 func (cli *Client) CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error {
 	query := url.Values{}
 	query.Set("path", filepath.ToSlash(path)) // Normalize the paths used in the API.