updated docker and essentials scripts

This commit is contained in:
2024-02-28 14:24:59 -06:00
parent 6835ef3185
commit 52d5407202
2 changed files with 23 additions and 5 deletions

View File

@@ -19,12 +19,24 @@ if [[ ! -f /etc/apt/keyrings/docker.gpg ]]
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
groupadd docker > /dev/null 2>&1
usermod -aG docker akanealw
curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
mv /root/.local/bin/lazydocker /usr/local/bin
systemctl enable docker.service
systemctl enable containerd.service
systemctl start docker.service
systemctl start containerd.service
systemctl status docker.service
systemctl status containerd.service
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
echo "alias dcpull='docker compose pull'" >> /etc/bash.bashrc
echo "alias dps='docker ps'" >> /etc/bash.bashrc
echo "alias dstart='docker start'" >> /etc/bash.bashrc
echo "alias dstop='docker stop'" >> /etc/bash.bashrc
echo "alias drestart='docker restart'" >> /etc/bash.bashrc
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."