LetHostTalk
How to install Docker and Docker compose on Ubuntu 24.04 — LetsHostTalk - Web Hosting Forum
HostNamaste.com

How to install Docker and Docker compose on Ubuntu 24.04

MivocloudMivocloud Member, Provider
Docker is an open-source platform designed to facilitate the development, shipping, and running of applications by using containerization. Containers package up code and all its dependencies so the application runs uniformly across different computing environments, from a developer’s local machine to production.

Commands Used:
sudo apt update sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o
/usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io -y
sudo systemctl status docker
sudo docker run hello-world
sudo usermod -aG docker $USER newgrp docker
sudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

█ Anatolie C. - Sales Officer
█ MivoCloud owns its Data Centers in Moldova and Romania.
█ Enterprise Class Cloud Hosting Services. Reseller KVM SSD VPS.
█ USA (Oregon), Moldova, Romania, Russia (Moscow)
Sign In or Register to comment.
                                                               KVM VPS