Why Common Install .sh isn't working?
Hi,
any idea why the install script of the repository https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh is'nt working on a vmware virtuell machine ubuntu 64 bit (image: ubuntu-22.04.3-desktop-amd64.iso). Ubuntu was installed with the minimum of utilites. The host is Win10.
I got it running with these steps:
wget https://github.com/jesseduffield/lazydocker/releases/download/v0.21.1/lazydocker_0.21.1_Linux_x86_64.tar.gz
tar xvzf lazydocker*.tar.gz
sudo install lazydocker /usr/local/bin/
sudo systemctl status docker
sudo lazydocker
The first way with install_update_linux.sh give me normal command in terminal lazydocker is running, but I get the socket error docker.sock: connet: permission denied. The command sudo lazydocker says lazydocker command not found.
The second way gives me both from above. I get the socket error without sudo and with sudo it is running and the magic starts with lazydocker to manage containers.
Probably it would be a good idea to add docker to a group to avoid the use of sudo all the time. But that's not my question here. Or is it the answer?
Same problem here. Did you manage to fix/workaround this?
The problem here, as far as I know, is with the docker command and its permissions not with lazydocker. Try for example to list all containers without sudo (docker ps -a) and you will see that this raise a similar error.
So, in order to run lazydocker without errors, you need to either add sudo or create a group like this: https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue.
I prefer to use sudo since the other solution implies to open your system to some vulnerabilities.