From 309a5c9aa4e24b33c27251da79f1f9844206a866 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 4 Apr 2024 11:34:12 -0500 Subject: [PATCH] readded lazydocker --- debian/debian-install-docker.sh | 3 +++ ubuntu/ubuntu-install-docker.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/debian/debian-install-docker.sh b/debian/debian-install-docker.sh index 39086e6..81fb404 100755 --- a/debian/debian-install-docker.sh +++ b/debian/debian-install-docker.sh @@ -16,6 +16,8 @@ if [[ ! -f /etc/apt/keyrings/docker.gpg ]] systemctl enable containerd.service systemctl start docker.service systemctl start containerd.service + curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash + mv /root/.local/bin/lazydocker /usr/local/bin echo "alias dc='docker compose'" >> /etc/bash.bashrc echo "alias dcup='docker compose up -d'" >> /etc/bash.bashrc echo "alias dcdown='docker compose down'" >> /etc/bash.bashrc @@ -27,6 +29,7 @@ if [[ ! -f /etc/apt/keyrings/docker.gpg ]] echo "alias dlf='docker logs -f'" >> /etc/bash.bashrc echo "alias dipaf='docker image prune -a -f'" >> /etc/bash.bashrc echo "alias deit='docker exec -it'" >> /etc/bash.bashrc + echo "alias lzd='lazydocker'" >> /etc/bash.bashrc echo "Docker installed successfully." else echo "Docker is already configured." diff --git a/ubuntu/ubuntu-install-docker.sh b/ubuntu/ubuntu-install-docker.sh index 39086e6..81fb404 100755 --- a/ubuntu/ubuntu-install-docker.sh +++ b/ubuntu/ubuntu-install-docker.sh @@ -16,6 +16,8 @@ if [[ ! -f /etc/apt/keyrings/docker.gpg ]] systemctl enable containerd.service systemctl start docker.service systemctl start containerd.service + curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash + mv /root/.local/bin/lazydocker /usr/local/bin echo "alias dc='docker compose'" >> /etc/bash.bashrc echo "alias dcup='docker compose up -d'" >> /etc/bash.bashrc echo "alias dcdown='docker compose down'" >> /etc/bash.bashrc @@ -27,6 +29,7 @@ if [[ ! -f /etc/apt/keyrings/docker.gpg ]] echo "alias dlf='docker logs -f'" >> /etc/bash.bashrc echo "alias dipaf='docker image prune -a -f'" >> /etc/bash.bashrc echo "alias deit='docker exec -it'" >> /etc/bash.bashrc + echo "alias lzd='lazydocker'" >> /etc/bash.bashrc echo "Docker installed successfully." else echo "Docker is already configured."