How do I run a sql file of inserts through docker run?

to execute commands against a running container use docker exec. to copy a file (ex: dump.sql) into a container, use docker cp So your approach might look something like this: docker cp ./dump.sql pg_test:/docker-entrypoint-initdb.d/dump.sql docker exec -u postgres pg_test psql postgres postgres -f docker-entrypoint-initdb.d/dump.sql here it is in generic form: docker cp ./localfile.sql containername:/container/path/file.sql docker … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)