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
I hope this was useful for you and let’s see what’s next?
#podman, #docker, #quay