浏览代码

Add composer install hint with dynamic version include

andryyy 8 年之前
父节点
当前提交
71886834ab
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13 2
      docs/install.md

+ 13 - 2
docs/install.md

@@ -4,7 +4,18 @@ You need Docker and Docker Compose.
 
 
 1\. Learn how to install [Docker](https://docs.docker.com/engine/installation/linux/) and [Docker Compose](https://docs.docker.com/compose/install/).
 1\. Learn how to install [Docker](https://docs.docker.com/engine/installation/linux/) and [Docker Compose](https://docs.docker.com/compose/install/).
 
 
-Most systems can safely install Docker by running `curl -sSL https://get.docker.com/ | sh`
+Quick installation for most operation systems:
+
+- Docker
+```
+curl -sSL https://get.docker.com/ | sh
+``` 
+
+- Docker-Compose
+```
+curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
+chmod +x /usr/local/bin/docker-compose
+```
 
 
 Please use the latest Docker engine available and do not use the engine that ships with your distros repository.
 Please use the latest Docker engine available and do not use the engine that ships with your distros repository.
 
 
@@ -61,4 +72,4 @@ Clean-up dangling (unused) images and volumes:
 ```
 ```
 docker rmi -f $(docker images -f "dangling=true" -q)
 docker rmi -f $(docker images -f "dangling=true" -q)
 docker volume rm $(docker volume ls -qf dangling=true)
 docker volume rm $(docker volume ls -qf dangling=true)
-```
+```