Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Fix image import with runtime docker #564

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

darkowlzz
Copy link
Contributor

Importing image with runtime docker fails because the ReadCloser is
closed too early.

# ignite image import hello-world:latest --runtime=docker
INFO[0000] docker image "hello-world:latest" not found locally, pulling...
FATA[0006] http: read on closed response body

Defer DeferErr to avoid closing the ReadCloser early.

Adds an e2e test to ensure image import works with docker runtime.

Importing image with runtime docker fails because the ReadCloser is
closed too early.

```
FATA[0006] http: read on closed response body
```

Defer DeferErr to avoid closing the ReadCloser early.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants