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."