Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail import docker image to contain multiple images #8

Open
ukinau opened this issue Nov 6, 2016 · 1 comment
Open

Fail import docker image to contain multiple images #8

ukinau opened this issue Nov 6, 2016 · 1 comment

Comments

@ukinau
Copy link

ukinau commented Nov 6, 2016

If you try to import the docker image to contain multiple images, like as followings.

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ubuntu              latest              c73a085dc378        5 weeks ago         127.1 MB
ubuntu              14.04               f2d8ce9fa988        5 weeks ago         187.9 MB

$ docker save ubuntu | gzip - > ubuntu.tar.gz

ubuntu.tar.gz contains 2 images 'ubuntu:latest' and 'ubuntu:14.04'.

$ tar -zxf ubuntu.tar.gz repositories  -O | jq .
{
  "ubuntu": {
    "latest": "9d2e5c12a9428108649812c24645eba52c030507a74c891984b3fb7f218d7690",
    "14.04": "e5db79ecb021272090388a7b2999748fe2534fce2a633f786a67441b283b4c87"
  }
}

On above conditions, if you try to import ubuntu.tar.gz with marten, it will fail with following error

$ sudo mincs/marten import ubuntu.tar.gz
Importing image: ubuntu
jq: error: Cannot index number with string
parse error: Invalid numeric literal

I don't thinks we need to load multiple images at once, but at least we need to logs to indicate it can't load multiple images at once to keep implementation with simple.

@mhiramat
Copy link
Owner

Hmm, at this point, marten only supports single version(tagged) image, not multiple version. But it seems better to consider as an enhancement idea.
Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants