jesseduffield / lazydocker

The lazier way to manage everything docker
MIT License
37.48k stars 1.2k forks source link

ERROR: ~/.config: read-only file system #569

Open lars18th opened 3 months ago

lars18th commented 3 months ago

Describe the bug Inside some frugal Linux distributions the root directory is read-only. When running it as root you receive this error: mkdir /root/.config: read-only file system

Additional context You need to provide one command line parameter to configure an alternative config directory. Or in case of failing use another path (i.e. /run/lazydocker)

lars18th commented 2 months ago

Hi @jesseduffield ,

You will provide a solution for this?

jesseduffield commented 2 months ago

I have no intentions on fixing this anytime soon, but I will happily review a PR. Would you be up to the task?

nikonhub commented 3 weeks ago

Hey,

I'd be happy to contribute. But after some search I've found this env variable CONFIG_DIR. So wouldn't calling lazydocker with it resolve your problem ?

CONFIG_DIR=/some_other_place lazydocker
sequencerr commented 3 weeks ago

I'm running for local user with sudo for current environment and it works. but there is cli argument that I don't know what does it mean/, existing for. the --config print default configuration. but description says "current default". which have no sense