Lissy93 / dashy

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
https://dashy.to
MIT License
18.06k stars 1.36k forks source link

[BUG] crash while trying to install #1645

Closed kittenvr closed 3 months ago

kittenvr commented 4 months ago

Environment

Self-Hosted (Docker)

System

debian

Version

latest i think

Describe the problem

when i run the command from the website i get an error

Additional info

sudo docker run -d -p 8080:8080 -v ~/my-conf.yml:/app/user-data/conf.yml --name my-dashboard --restart=always lissy93/dashy:latest docker: Error response from daemon: Conflict. The container name "/my-dashboard" is already in use by container "a1ed5f996baf74e1b1875e7f2838376009c3d5fcf718a9fc50d1a3e3a95ed8ad". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'.

Please tick the boxes

CrazyWolf13 commented 4 months ago

Hi seems like you already have a container named my-dashboard, try a different name or delete the old if not used anymore.

Then the command should work fine :)

kittenvr commented 4 months ago

what command to delete it

CrazyWolf13 commented 4 months ago

I suggest you familiarize yourself first with docker a bit, here are some basic tutorials: https://youtu.be/eGz9DS-aIeY https://youtu.be/94VQvRpjfO8

CrazyWolf13 commented 3 months ago

@kittenvr Could you resolve the issue?

kittenvr commented 3 months ago

I think so

highfillgoods commented 5 days ago

https://dashy.to/docs/troubleshooting/

even after removing the container it was still around. had to do a prune.

docker system prune
docker system prune -a --volumes

but the main problem was setting up the container with -v option.

Create a YAML file, (touch my-conf.yml), populate it with a sample config, then pass it as a volume: -v ./my-local-conf.yml:/app/user-data/conf.yml

docker run -d \
-p 80:8080 \
-v ~/my-conf.yml:/app/user-data/conf.yml \
--name my-dashboard \
lissy93/dashy:latest