فهرست منبع

Add note to CopyToContainer documentation

Signed-off-by: Brian Schwind <brianmschwind@gmail.com>
Brian Schwind 8 سال پیش
والد
کامیت
1c3071e487
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.