blob: 111fa88089815f8c9bb8adda864ad72166e663b3 [file] [log] [blame]
Michael Kutý17649402016-03-19 23:57:43 +01001
2======
3Docker
4======
5
6Docker is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into production as fast as possible.
7
8Docker is supported on the following systems:
9
10* Debian 8.0 Jessie (64-bit)
11* Ubuntu Trusty 14.04 (LTS) (64-bit)
12* Ubuntu Precise 12.04 (LTS) (64-bit)
13* Ubuntu Raring 13.04 and Saucy 13.10 (64 bit)
14
15Sample pillar
16-------------
17
18.. code-block:: yaml
19
20 docker:
21 host:
22 enabled: true
23
24Containers
25----------
26
27 docker:
28 host:
29 container:
30 registry:
31 image: "registry:2"
32 runoptions:
33 - -e "REGISTRY_STORAGE=inmemory"
34 - -e "GUNICORN_OPTS=[\"--preload\"]"
35 - "--log-driver=syslog"
36 - "-p 5000:5000"
37 - "--rm"
38
39Compose
40-------
41
42.. code-block:: yaml
43
44 docker:
45 compose:
46 container:
47 postgres:
48 restart: always
49 image: postgres:latest
50 volumes_from:
51 - memcached
52 ports:
53 - "5432:5432"
54
Filip Pytlounbaf94c92016-06-07 18:07:17 +020055Registry
56--------
57
58.. code-block:: yaml
59
60 docker:
61 registry:
62 log:
63 level: debug
64 formatter: json
65 cache:
66 engine: redis
67 host: localhost
68 storage:
69 engine: filesystem
70 root: /srv/docker/registry
71 bind:
72 host: 0.0.0.0
73 port: 5000
74 hook:
75 mail:
76 levels:
77 - panic
78 # Options are rendered as yaml as is so use hook-specific options here
79 options:
80 smtp:
81 addr: smtp.sendhost.com:25
82 username: sendername
83 password: password
84 insecure: true
85 from: name@sendhost.com
86 to:
87 - name@receivehost.com
88
Michael Kutý17649402016-03-19 23:57:43 +010089
90Read more
91---------
92
93* https://docs.docker.com/installation/ubuntulinux/
94* https://github.com/saltstack-formulas/docker-formula
Filip Pytlounbaf94c92016-06-07 18:07:17 +020095