Hi, this is a very short blog post. When you use Podman and you are going to build a container with this command:
podman build -t "quay.io/$REPOSITORY/mycontainer:v1" -f Dockerfile .
You maybe get this error:
Error: error getting default registries to try: short-name resolution enforced but cannot prompt without a TTY
The reason for that error cloud be, maybe you used a statement like in the following code to get the base image:
FROM node:12-alpine as BUILD
If you get your base image from DockerHub just can insert docker.io and it should work.
FROM docker.io/node:12-alpine as BUILD
That’s all.
I hope this was useful for you and let’s see what’s next?
Greetings,
Thomas
#podman, #docker, #quay
Life saving man..
LikeLiked by 1 person
Yeah, sometimes it’s the simple stuff 😉
LikeLike
Thanks for the post!!! One more life saved in Brazil!!!
LikeLiked by 1 person