cli.fail

Practice this fail.

The final dot matters.

Docker · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

Docker · Beginner

The current directory contains a trusted Dockerfile and all intended build inputs. Build and tag it as demo:dev using this directory as context.

The final dot matters.

$ docker build -t demo:dev

ERROR: requires a build context argument

How do you provide the current directory as the build context?

3 attempts remaining

Read why this fix works

The final dot matters.

docker build -t demo:dev .

The final dot supplies the current directory as the build context. The tag flag names the result. Review the Dockerfile and .dockerignore before sending build inputs to a builder.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result