this post was submitted on 23 May 2022
2 points (100.0% liked)

Lemmy Support

4652 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

How to edit theme style in docker?

~# docker exec -it 9f3678b6218f /bin/bash OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

How can this be solved?

you are viewing a single comment's thread
view the rest of the comments
[–] nutomic@lemmy.ml 1 points 2 years ago (1 children)

docker-compose exec postgres psql -U lemmy

[–] aihao@lemmy.ml 1 points 2 years ago* (last edited 2 years ago) (1 children)

I change the database name to lemmyok in docker-compose.yml and lemmy.hjson, and use the command "docker-compose exec postgres psql -U lemmyok" and get " psql: error: FATAL: role "lemmyok" does not exist ",can't enter PG.

If I use the command docker-compose exec postgres psql -U lemmy without changing the database name, I can enter PG normally.

Am I doing something wrong?

What should be the correct solution?

[–] nutomic@lemmy.ml 1 points 2 years ago

-U is for the postgres user, not the database. you can pass that with -d