Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Conversation

@euank
Copy link
Contributor

@euank euank commented Jun 12, 2017

Docker allows creating empty images (e.g. with FROM scratch followed by
a no-op like MAINTAINER or LABEL).

Without this patch, docker2aci will panic when it encounters an image of
this sort.

These images are more-or-less useless. They're also difficult to work
with. As an example, docker save bails on them with an unimplemented
error.

In line with that behavior, I think bailing in docker2aci makes sense
too rather than dealing with more robust error handling or creating an
empty ACI.

Docker allows creating empty images (e.g. with FROM scratch followed by
a no-op like MAINTAINER or LABEL).

Without this patch, docker2aci will panic when it encounters an image of
this sort.

These images are more-or-less useless. They're also difficult to work
with. As an example, `docker save` bails on them with an `unimplemented`
error.

In line with that behavior, I think bailing in docker2aci makes sense
too rather than dealing with more robust error handling or creating an
empty ACI.
@euank
Copy link
Contributor Author

euank commented Jun 12, 2017

sudo rkt fetch --insecure-options=image docker://euank/scratch if you want to see the panic 😄

@lucab lucab merged commit 74ed3c0 into appc:master Jun 13, 2017
@euank euank deleted the avoid-panic-on-empty-layers branch June 14, 2017 18:11
@iaguis iaguis added this to the v0.17.0 milestone Sep 22, 2017
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.

4 participants