blob: 3687dac318c2aaa14692abb33ff40daec7fc85af [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:
Filip Pytloun87169542016-08-29 13:38:30 +020030 jenkins:
31 # Don't start automatically
32 start: false
33 restart: unless-stopped
34 image: jenkins:2.7.1
Michael Kutý17649402016-03-19 23:57:43 +010035 ports:
Filip Pytloun87169542016-08-29 13:38:30 +020036 - 8081:8080
37 - 50000:50000
38 environment:
39 JAVA_OPTS: "-Dhudson.footerURL=https://www.example.com"
40 volumes:
41 - /srv/volumes/jenkins:/var/jenkins_home
Michael Kutý17649402016-03-19 23:57:43 +010042
Filip Pytlounbaf94c92016-06-07 18:07:17 +020043Registry
44--------
45
46.. code-block:: yaml
47
48 docker:
49 registry:
50 log:
51 level: debug
52 formatter: json
53 cache:
54 engine: redis
55 host: localhost
56 storage:
57 engine: filesystem
58 root: /srv/docker/registry
59 bind:
60 host: 0.0.0.0
61 port: 5000
62 hook:
63 mail:
64 levels:
65 - panic
66 # Options are rendered as yaml as is so use hook-specific options here
67 options:
68 smtp:
69 addr: smtp.sendhost.com:25
70 username: sendername
71 password: password
72 insecure: true
73 from: name@sendhost.com
74 to:
75 - name@receivehost.com
76
marco85b72a62016-07-07 13:08:33 +020077Docker login to private registry
78--------------------------------
79
80.. code-block:: yaml
81
82 docker:
83 host:
84 enabled: true
85 registry:
86 first:
87 address: private.docker.com
88 user: username
89 password: password
90 second:
91 address: private2.docker.com
92 user: username2
93 password: password2
Michael Kutý17649402016-03-19 23:57:43 +010094
95Read more
96---------
97
98* https://docs.docker.com/installation/ubuntulinux/
99* https://github.com/saltstack-formulas/docker-formula
Filip Pytlounbaf94c92016-06-07 18:07:17 +0200100