Find Docker config files
from Dust0741@lemmy.world to selfhosted@lemmy.world on 21 Apr 03:14
https://lemmy.world/post/14522491

I want to find my docker config file.

This is for Dashy. I want to make a Widget (like this), but need to access the conf.yml file associated to Dashy. Also see this video @15:42 (invidious)

Dashy was installed (I removed the “-v” line like they said) via docker, and doesn’t have any volumes mapped.


Edit: Well duh. I mapped /home/user/dashy/conf.yml to /app/user-data/conf.yml and filled my previous conf in and re-deployed and boom; perfection. Thanks for the help @AbouBenAdhem@lemmy.world and @VelociCatTurd@lemmy.world

#selfhosted

threaded - newest

tagginator@utter.online on 21 Apr 03:15 next collapse

New Lemmy Post: Find Docker config files (https://lemmyverse.link/lemmy.world/post/14522491)
Tagging: #SelfHosted

(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)

I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md

PipedLinkBot@feddit.rocks on 21 Apr 03:15 next collapse

Here is an alternative Piped link(s):

this video

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source; check me out at GitHub.

AbouBenAdhem@lemmy.world on 21 Apr 04:23 next collapse

If you didn’t map a local config file into the container, it’s using the default version inside the container at /app/public/conf.yml (and any changes will get overwritten when you rebuild the container). If you want to make changes to the configuration for the widget, you’ll want to use the -v option with a local config file so the changes you make will persist.

VelociCatTurd@lemmy.world on 21 Apr 06:38 collapse

It’s at /app/public/conf.yml within the container. But I suppose you’re asking how you would pull it out? I’d probably just get into the container interactively and just copy the contents of that file. I would suggest using volumes in the future for persistent data.

stegosaur5491@lemm.ee on 21 Apr 20:27 collapse

docker cp is nice for that.