Signed-off-by: Brian Schwind <brianmschwind@gmail.com>
| ... | ... |
@@ -30,6 +30,7 @@ func (cli *Client) ContainerStatPath(ctx context.Context, containerID, path stri |
| 30 | 30 |
} |
| 31 | 31 |
|
| 32 | 32 |
// CopyToContainer copies content into the container filesystem. |
| 33 |
+// Note that `content` must be a Reader for a TAR |
|
| 33 | 34 |
func (cli *Client) CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error {
|
| 34 | 35 |
query := url.Values{}
|
| 35 | 36 |
query.Set("path", filepath.ToSlash(path)) // Normalize the paths used in the API.
|