ERROR: “docker run” requires at least 1 argument

I was trying to paste something in to a terminal window and I got this error. In this case it was the “Install the new Presearch Node Auto-Updater service”

Example error message start

root@presearch-Node:~$ sudo docker run -dt –name presearch-node –restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=12345abcdefg6789hijklmnop0 presearch/node
“docker run” requires at least 1 argument.
See ‘docker run –help’.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG…]

Run a command in a new container

Example error message end

The Solution

Entering the full command manually fixed the error. So enter it manually into note pad or where ever you keep your frequently used commands and then copy and paste it in to the terminal window.

I cut and paste large amounts of text in to the terminal window. This true for most on the commands required to install Docker, the node itself and the node auto-start commands. It turns out that even though the text looks perfect, it’s pasting some sort of random character in ton the terminal window.

That’s it!