lazydocker icon indicating copy to clipboard operation
lazydocker copied to clipboard

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

Open lars18th opened this issue 1 year ago • 4 comments

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 avatar Jul 31 '24 19:07 lars18th

Hi @jesseduffield ,

You will provide a solution for this?

lars18th avatar Sep 06 '24 09:09 lars18th

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

jesseduffield avatar Sep 06 '24 11:09 jesseduffield

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

nikonhub avatar Oct 24 '24 13:10 nikonhub

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

sequencerr avatar Oct 24 '24 14:10 sequencerr