Merge pull request #33467 from bschwind/copy-documentation
Add note to CopyToContainer documentation Upstream-commit: 5564fad4068619e7d0c5fd7defe7dd5e3f0edd8c Component: engine
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user