From 1c3071e487db96ba8274ac2388eca0002e9cee77 Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Thu, 1 Jun 2017 12:59:59 +0900 Subject: [PATCH] Add note to CopyToContainer documentation Signed-off-by: Brian Schwind --- client/container_copy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/container_copy.go b/client/container_copy.go index 545aa54383..b7f4872be7 100644 --- a/client/container_copy.go +++ b/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.