user269867
user269867

Reputation: 3972

COPY command not found in postgres dockerize

I am trying to COPY data from CSV to container

From postgres container shell

$COPY
copy command not found 

also tried \copy

but createdb and dropdb works for me.

Upvotes: 1

Views: 934

Answers (1)

Craig Ringer
Craig Ringer

Reputation: 324811

COPY is not a bash shell command, it's a command run within the psql database query shell.

Upvotes: 2

Related Questions