Error: error getting default registries to try: short-name resolution enforced but cannot prompt without a TTY

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


2 thoughts on “Error: error getting default registries to try: short-name resolution enforced but cannot prompt without a TTY

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.