ソースを参照

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
+```

読み込み中…
キャンセル
保存