You are here
Home > Software Development > DevOps > Installing Docker and Docker-Compose on Ubuntu

Installing Docker and Docker-Compose on Ubuntu

Docker
apt-get update
apt-get install apt-transport-https ca-certificates curl software-properties-common

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

apt-key fingerprint 0EBFCD88

add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”

apt-get update

apt-get install docker-ce

docker -v

docker-compose

curl -L “https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose

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

docker-compose –version

Leave a Reply

Top