The installation

 apt install docker-compose
Copy the code

Creating a folder

mkdir helloWorld
cd helloWorld
rm -rf docker-compose.yml  # delete file
Copy the code

Docker – compose. Yml created

vi docker-compose.yml


version: '3.1'
service:
  hello-world:
  image: hello-world
Copy the code

run

docker-compose up 
Copy the code