Pgvector docker run command throws error "Missing expression after unary operator '--'."

docker run -d \

-e POSTGRES_DB=ai
-e POSTGRES_USER=ai
-e POSTGRES_PASSWORD=ai
-e PGDATA=/var/lib/postgresql/data/pgdata
-v pgvolume:/var/lib/postgresql/data
-p 5532:5432
–name pgvector
agnohq/pgvector:16

At line:8 char:5

  • –name pgvector \
  • ~
    

Missing expression after unary operator ‘–’.
At line:8 char:5

  • –name pgvector \
  • ~~~~
    

Unexpected token ‘name’ in expression or statement.
+ CategoryInfo : ParserError: (:slight_smile: , ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator

Hi @sunnyAgno
Thanks for reaching out and for using Agno! I’ve looped in the right engineers to help with your question. We usually respond within 24 hours, but if this is urgent, just let us know, and we’ll do our best to prioritize it.
Appreciate your patience—we’ll get back to you soon! :smile:

Hi @sunnyAgno ,
Can you please trying running the below script instead. There is a ‘-’ missing before name in the command you are using.

docker run -d \
  -e POSTGRES_DB=ai \
  -e POSTGRES_USER=ai \
  -e POSTGRES_PASSWORD=ai \
  -e PGDATA=/var/lib/postgresql/data/pgdata \
  -v pgvolume:/var/lib/postgresql/data \
  -p 5532:5432 \
  --name pgvector \
  agnohq/pgvector:16

You also find the corrected script here.

Thank you @monalisha , I believe to execute these statements, I need to install local Docker desktop correct?

Hi @sunnyAgno you are right , you will need to have docker desktop running , to run the above command.