Custom Search

Monday, December 9, 2019

How to install Docker Compose on ubuntu 18.04

1)
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
 
2)
sudo chmod +x /usr/local/bin/docker-compose
 
3)
docker-compose --version
 
4)
mkdir dctest
cd dctest
vim docker-compose.yml
 
my-test:
 image: hello-world
 
5)
docker-compose up     

1 comment: