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

use qualified instead of short-name for image #263

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

tpo
Copy link
Contributor

@tpo tpo commented Dec 28, 2021

$ ansible-bender build ./simple-playbook.yaml 
11:59:17.795 utils.py          ERROR  short-name "python:3-alpine" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
11:59:17.796 utils.py          ERROR  level=error msg="exit status 125"
11:59:17.797 buildah_builder.py ERROR  Unable to create or run a container using python:3-alpine with buildah
short-name "python:3-alpine" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
level=error msg="exit status 125"
There was an error during execution: Command '['buildah', 'from', '--name', 'a-very-nice-image-20211228-115917655205-cont-20211228115917744737', 'python:3-alpine']' returned non-zero exit status 125.

This is on Debian stable (bullseye). Debian's podman doesn't enable short-names by default so on Debian systems the example will fail.

```
$ ansible-bender build ./simple-playbook.yaml 
11:59:17.795 utils.py          ERROR  short-name "python:3-alpine" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
11:59:17.796 utils.py          ERROR  level=error msg="exit status 125"
11:59:17.797 buildah_builder.py ERROR  Unable to create or run a container using python:3-alpine with buildah
short-name "python:3-alpine" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
level=error msg="exit status 125"
There was an error during execution: Command '['buildah', 'from', '--name', 'a-very-nice-image-20211228-115917655205-cont-20211228115917744737', 'python:3-alpine']' returned non-zero exit status 125.
```
This is on Debian stable (bullseye). Debian's podman [doesn't enable short-names by default](https://bugs.debian.org/978650) so on Debian systems the example will fail.
Copy link
Collaborator

@TomasTomecek TomasTomecek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your time opening this PR!

Oh well, things are changing fast in the container space, this is indeed better and more explicit.

@TomasTomecek TomasTomecek merged commit 35c7b4c into ansible-community:master Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants