Robin Thoni 7 anni fa
parent
commit
50d8f492dd
1 ha cambiato i file con 27 aggiunte e 0 eliminazioni
  1. 27
    0
      README.md

+ 27
- 0
README.md Vedi File

@@ -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…
Annulla
Salva