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

Converting local files from buildah fails "Could not find image" #257

@orthecreedence

Description

@orthecreedence

Hello. I'm really excited about using rkt and have started playing with it a bit. One problem I'm having is that it's really difficult to create images that rkt can use without using Docker. I had hoped docker2aci could help, but it's giving me problems.

I'm currently using buildah (buildah version 0.10 (image-spec 1.0.0, runtime-spec 1.0.0)) and docker2aci (docker2aci version v0.17.1-2-g365911f-dirty / appc version 0.8.10) with both docker outputs and oci outputs:

# try with OCI
$ #sudo buildah bud /path/to/docker/repo
# success, creates image 183427cef41c
$ sudo buildah push 183427cef41c oci:my-app.oci:latest
# success, creates my-app.oci
$ docker2aci -debug ./my-app.oci
Getting image info...
getting image id...
Error: conversion error: Could not find image
# try with docker
$ sudo buildah bud /path/to/docker/repo
# success, creates image 183427cef41c
$ sudo buildah push 183427cef41c docker-archive:my-app.docker:latest
# success, creates my-app.docker
$ docker2aci -debug ./my-app.docker
Getting image info...
getting image id...
Error: conversion error: Could not find image

I've searched through a lot of the issues/PRs and it seems like OCI support and various Docker formats are supported, but after adding some debug info to lib/internal/backend/file/file.go it looks like it gets hung up on looking for repositories or refs/latest (seems like it's only checking for one specific format and giving up if it doesn't find it).

Any tips? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions