Skip to content

Something is wrong when loading an image #449

@Palollo

Description

@Palollo

How to reproduce:

Write down the dockerfile:

FROM ubuntu:22.04

WORKDIR /tmp
RUN adduser ds
WORKDIR /home/ds

It is the simplest dockerfile I've found to reproduce the problem.

Then build:
docker build -t test:01 .

And save to a file:
docker save test:01 -o test01.tar

Now when loading with udocker...

~$ udocker load -i test01.tar
Info: adding layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef
Info: adding layer: sha256:47aeb7235dccda9e3b903c458276060ca6b90b4a82e00221b32462982fd98248
Info: adding layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef
[]

Note there is not a name assigned within the square brackets at the end.
That's the first symptom that something is wrong.

It is appearing when the the images are listed:

~$ udocker images
REPOSITORY
9b87adf5eaea450f:01    .

But when we inspect it:

~$ udocker inspect 9b87adf5eaea450f:01
Error: image or container not found 9b87adf5eaea450f:01

And when we verify all is good:

~$ udocker verify 9b87adf5eaea450f:01
Info: verifying: 9b87adf5eaea450f:01
Info: loading structure
Info: verifying layers
Info: layer ok: 5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef
Info: layer ok: 47aeb7235dccda9e3b903c458276060ca6b90b4a82e00221b32462982fd98248
Info: image Ok

And finally if we create a container:

~$ udocker create 9b87adf5eaea450f:01
Error: create container: getting layers or json

What's going on?

Probably related #443

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