A short post for today. It had been a while since the last time I created a docker image through the commandline. This resulted in me making a stupid mistake and ended up with a docker build error.
I wanted to build a docker image and executed the following command from the folder containing my DOCKERFILE:
docker build -t rabbitmq-streaming
This failed with the following error message:
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Did you notice my mistake?
I forgot to add exactly 1 extra character; a dot. This dot means that docker will use the DOCKERFILE in the local directory.
So the correct command becomes:
docker build -t rabbitmq-streaming .
Happy coding!