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

Lemmy Support

4718 readers
2 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
[–] [email protected] 1 points 2 years ago (13 children)
[–] [email protected] 1 points 2 years ago (10 children)

What I mean is to use the command docker exec -it 9f3678b6218f /bin/bash to enter the Docker instance and then modify the theme file.

[–] [email protected] 1 points 2 years ago (9 children)

Try docker-compose exec lemmy-ui sh, the container might not have bash. Also, any changes made this way will be gone after restart.

[–] [email protected] 1 points 2 years ago (1 children)

I want to map the /app/dist/assets/css/themes directory in the container to the host lemmy directory. Thereby, the theme file in the container can be modified on the host machine. Added the following code in docker-compose.yml:

 volumes:
   - ./volumes/lemmy-ui:/app/dist/assets/css/themes

After running the instance, no files appear in the host lemmy/volumes/lemmy-ui directory.

So, what should I do to map the /app/dist/assets/css/themes directory in the container to the host lemmy directory? ? ?

[–] [email protected] 1 points 2 years ago

This is not the right way to develop themes, you should use the preconfigured themes folder.

https://join-lemmy.org/docs/en/administration/theming.html

load more comments (7 replies)
load more comments (7 replies)
load more comments (9 replies)