readded lazydocker

This commit is contained in:
2024-04-04 11:34:12 -05:00
parent ca8929fcde
commit 309a5c9aa4
2 changed files with 6 additions and 0 deletions

View File

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

View File

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