Skip to content

rootless buildah and rootless podman don't see each other's images #37

Closed

Description

@juhp

So some weeks ago I cleaned away my podman containers and images, and this seems to have broken fedora-toolbox for me:

$ buildah images -n
registry.fedoraproject.org/f29/fedora-toolbox            29                   032b427fbbf7         Sep 27, 2018 19:47     578 MB
localhost/fedora-toolbox-petersen                        29                   0c06f5c08a55         Dec 14, 2018 18:41     578 MB
registry.fedoraproject.org/f28/fedora-toolbox            28                   9ffedc39f7f2         Sep 27, 2018 01:07     602 MB
localhost/fedora-toolbox-petersen                        28                   7b9d97257117         Dec 27, 2018 15:51     602 MB
$ podman images | grep toolbox
$ git clone https://github.com/debarshiray/fedora-toolbox
$ cd fedora-toolbox
$ edit fedora-toolbox  ## add set -x to the beginning of fedora-toolbox
$ ./src/fedora-toolbox -v create
: 
:
+ uid_plus_one=1001
+ echo './fedora-toolbox: trying to create container fedora-toolbox-petersen:29'
+ podman create --group-add wheel --hostname toolbox --interactive --name fedora-toolbox-petersen:29 --network host --privileged --security-opt label=disable --tmpfs /dev/shm:size=8345511936 --tty --uidmap 1000:0:1 --uidmap 0:1:1000 --uidmap 1001:1001:64536 --volume /home/petersen:/home/petersen --volume /run/user/1000:/run/user/1000 --volume /run/dbus/system_bus_socket:/run/dbus/system_bus_socket --volume /dev/dri:/dev/dri fedora-toolbox-petersen:29 /bin/sh
Trying to pull docker.io/fedora-toolbox-petersen:29...Failed
Trying to pull registry.fedoraproject.org/fedora-toolbox-petersen:29...Failed
:
unable to pull fedora-toolbox-petersen:29: 5 errors occurred:

* Error determining manifest MIME type for docker://fedora-toolbox-petersen:29: Error reading manifest 29 in docker.io/library/fedora-toolbox-petersen: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

* Error determining manifest MIME type for docker://registry.fedoraproject.org/fedora-toolbox-petersen:29: Error reading manifest 29 in registry.fedoraproject.org/fedora-toolbox-petersen: manifest unknown: manifest unknown
: 
+ echo './fedora-toolbox: failed to create container fedora-toolbox-petersen:29'
./fedora-toolbox: failed to create container fedora-toolbox-petersen:29
+ exit 1
+ exit

Anyway this seems to be caused by podman images being different to buildah images or something like that AFAICT...

I guess I need to delete the buildah image or skopeo it back over to podman storage to fix my setup, so while this might be an edge case I think it would be good to handle this missing podman user toolbox image case (after podman rmi the base image etc): I didn't realise the buildah and podman image storage is separate...

However even if I replace buildah inspect with podman inspect, it still fails for me in the same way.

Activity

  1. debarshiray commented on Jan 14, 2019

    @debarshiray
    Member

    Thanks for the detailed bug report, @juhp ! It looks like a mismatch between podman and buildah. I remember such a situation late last year, but I think it was ultimately fixed. Anyway, let's debug a bit more.

    Could you please also dump your full podman images output?

    What are your podman and buildah versions (rpm -q buildah podman) ?

  2. juhp commented on Jan 16, 2019

    @juhp
    ContributorAuthor

    Yeah ttomecek told this was podman-container-tools/buildah#1224
    I dunno if something needs to be done to recover from that...

    I have currently:
    buildah-1.5-1.gite94b4f9.fc29.x86_64
    podman-0.12.1.2-1.git9551f6b.fc29.x86_64

    $ podman images
    REPOSITORY                                                   TAG       IMAGE ID       CREATED         SIZE
    docker.io/library/fedora                                     29        8bd04269a51b   6 days ago      283 MB
    <none>                                                       <none>    12455a1751ff   9 days ago      129 MB
    <none>                                                       <none>    45447d528d7f   9 days ago      129 MB
    <none>                                                       <none>    d4c6eb1cf604   9 days ago      129 MB
    <none>                                                       <none>    98801e6c0d98   12 days ago     129 MB
    <none>                                                       <none>    047b1f128cbf   12 days ago     129 MB
    <none>                                                       <none>    b83f1f3a8795   13 days ago     129 MB
    <none>                                                       <none>    5be62407a292   2 weeks ago     129 MB
    <none>                                                       <none>    bd3978ab5a14   2 weeks ago     129 MB
    <none>                                                       <none>    8e6034dc385f   2 weeks ago     129 MB
    <none>                                                       <none>    ce5cc71453ae   2 weeks ago     129 MB
    <none>                                                       <none>    8e7047a60680   2 weeks ago     129 MB
    <none>                                                       <none>    14538eefa8f0   2 weeks ago     129 MB
    docker.io/library/debian                                     latest    de8b49d4b0b3   2 weeks ago     106 MB
    docker.io/library/ubuntu                                     latest    1d9c17228a9e   2 weeks ago     89.2 MB
    <none>                                                       <none>    25e6809f6fab   4 weeks ago     282 MB
    registry.fedoraproject.org/fedora                            latest    6aed6d59a707   4 weeks ago     283 MB
    registry.fedoraproject.org/fedora                            29        6aed6d59a707   4 weeks ago     283 MB
    registry.fedoraproject.org/fedora                            rawhide   37d289c5000d   4 weeks ago     292 MB
    docker.io/library/fedora                                     28        f0b9fdd4254d   2 months ago    270 MB
    docker.io/library/centos                                     6         0cbf37812bff   3 months ago    202 MB
    registry.fedoraproject.org/fedora                            28        ded494ce3076   3 months ago    264 MB
    registry.fedoraproject.org/fedora                            27        fcd67557ec4b   4 months ago    247 MB
    docker.io/fpco/pid1                                          latest    51832a210d14   4 months ago    129 MB
    docker.io/fpco/pid1                                          18.04     51832a210d14   4 months ago    129 MB
    docker.io/fpco/pid1                                          16.04     13696c13b663   14 months ago   167 MB
    
  3. debarshiray commented on Jan 16, 2019

    @debarshiray
    Member

    Ok, that explains it. I don't know of a good non-destructive way to recover from it.

    If you don't mind losing all your existing containers and images, then I'd:

    $ sudo rm -rf ~/.local/share/containers
    $ rm -f ~/.config/containers/*.conf
    

    Then put this in ~/.config/containers/storage.conf:

    [storage]
      driver = "overlay"
      runroot = "/run/user/1000"
      graphroot = "/home/rishi/.local/share/containers/storage"
      [storage.options]
        mount_program = "/usr/bin/fuse-overlayfs"
    

    Then use fedora-toolbox to re-create your toolboxes and continue.

  4. debarshiray commented on Jan 17, 2019

    @debarshiray
    Member

    Closing, since this was due to a mismatch between buildah and podman.

  5. changed the title [-]`podman rmi ` user toolbox breaks fedora-toolbox?[/-] [+]rootless buildah and rootless podman don't see each other's images[/+] on Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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