How Do You Troubleshoot “no context directory specified, and no dockerfile specified”?

Problem scenario
You run a command like this: docker build -t "ricepaper:contint"

But you receive a message such as this:

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
no context directory specified, and no dockerfile specified

How do you resolve this problem?

Solution
Use a space and a period at the end of the command. Remember to use " ." at the end like this:

docker build -t "ricepaper:contint" .

Leave a comment

Your email address will not be published. Required fields are marked *