瀏覽代碼

README

master
Robin Thoni 7 年之前
父節點
當前提交
50d8f492dd
共有 1 個文件被更改,包括 27 次插入0 次删除
  1. 27
    0
      README.md

+ 27
- 0
README.md 查看文件

@@ -0,0 +1,27 @@
1
+Docker for php 7.0 with ssh
2
+==================================
3
+
4
+Why?
5
+----
6
+
7
+This docker file allows you to run php 7.0 scripts on any server configuration. This is useful if you have to run tests or composer commands that require php 7.0. See docker help for more information.
8
+
9
+Usage
10
+-----
11
+
12
+Build the image:
13
+```shell
14
+git clone https://git.rthoni.com/robin.thoni/docker-php7.0-ssh
15
+cd docker-php7.0-ssh
16
+docker build -t php7.0-ssh .
17
+```
18
+
19
+Run a container:
20
+```shell
21
+docker run -d -v /path/to/my/php/application/:/data/ -p 2200:22 --name=container-my-php-application-ssh php7.0-ssh
22
+```
23
+
24
+Connect to the container:
25
+```shell
26
+ssh root@127.0.0.1 -o Port=2200 # password is 'toor' (without quotes)
27
+```

Loading…
取消
儲存