0% found this document useful (0 votes)
12 views1 page

Docker Installation Commands

This document provides a step-by-step guide to install Docker and Docker-Compose on an Ubuntu system. It includes commands for updating package lists, adding Docker's GPG key, installing Docker, checking its status, and managing Docker services. Additionally, it covers building and running Docker applications using Docker-Compose and managing running services.

Uploaded by

『YOUR彡 HEART
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Docker Installation Commands

This document provides a step-by-step guide to install Docker and Docker-Compose on an Ubuntu system. It includes commands for updating package lists, adding Docker's GPG key, installing Docker, checking its status, and managing Docker services. Additionally, it covers building and running Docker applications using Docker-Compose and managing running services.

Uploaded by

『YOUR彡 HEART
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

sudo apt-get update

Install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu


$(lsb_release -cs) stable"

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

sudo systemctl status docker

Install Docker-Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-
compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version

ps axf | grep docker | grep -v grep | awk '{print "kill -9 " $1}' | sudo sh

#To STOP
sudo systemctl stop docker

#TO START
sudo systemctl start docker
sudo systemctl enable docker

Build the Docker app and run the services:


sudo docker-compose up --build

Check if the services are up and running using command below:

docker ps -a

docker-compose down

sudo docker-compose rm -f

You might also like