Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Cannot create container from untagged image #65

@AstraLuma

Description

@AstraLuma
Traceback (most recent call last):
  File "/home/astraluma/.virtualenvs/mc/podcraft/bin/podcraft", line 11, in <module>
    load_entry_point('podcraft', 'console_scripts', 'podcraft')()
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/astraluma/code/mc/podcraft/podcraft/cli.py", line 24, in build
    pc.rebuild_everything()
  File "/home/astraluma/code/mc/podcraft/podcraft/mainobj.py", line 128, in rebuild_everything
    serv_con = create_container(serv_img, pod, volumes)
  File "/home/astraluma/code/mc/podcraft/podcraft/containers.py", line 13, in create_container
    return image.create(
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.8/site-packages/podman/libs/images.py", line 44, in create
    config['image'] = copy.deepcopy(details.repotags[0])
TypeError: 'NoneType' object is not subscriptable

It looks like if I don't give an image a tag, Image.create() cannot use it to create a container.

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