I was executing the whole command in one line, as it was mentioned as such
$ docker run --name testproject-agent \
-e TP_API_KEY="REPLACE_WITH_YOUR_KEY" \
-e TP_AGENT_ALIAS="My First Agent" \
testproject/agent:latest
But its supposed to be a multiline command, and I copied the command line by line and pressed enter after every line and bam! it worked.
Sometimes when you copy off of the web, the new-line character gets omitted, hence my suggestion to try manually introducing the new line.
I encountered this another instance, I was trying to execute the below code on windows
docker run -it -p 7860:7860 --platform=linux/amd64 \
registry.hf.space/fffiloni-videoretalking:latest
This time it was the linebreak was wrong (Linux), so the correct command was
docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all `
registry.hf.space/fffiloni-videoretalking:latest
docker run -p 8888:8888 -v "`pwd`/../src":/src -v "`pwd`/../data":/data -w /src --rm -it supervisely_anpr bash--rmand-itin-betweenrunand the image name. That won't explain the error message, though. Did you check whether the image name characters don't have any special encoding or upper case? Copy&Paste from your snippet works for me, whiledocker run --rm foo! bashprints the same error like yours."$(pwd)"(modern form of"`pwd`"). Your command becomesdocker run -p 8888:8888 -v "$(pwd)"/../src:/src -v "$(pwd)"/../data:/data -w /src supervisely_anpr --rm -it bash.