blob: d2c20f5b7d9371f5973e3b88b471d11ea2cc9a6f [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
Filip Pytloune27a90d2016-08-29 14:08:34 +020018Host
19----
20
Michael Kutý17649402016-03-19 23:57:43 +010021.. code-block:: yaml
22
23 docker:
24 host:
25 enabled: true
26
Filip Pytloune27a90d2016-08-29 14:08:34 +020027Client
28------
Michael Kutý17649402016-03-19 23:57:43 +010029
30 docker:
Filip Pytloune27a90d2016-08-29 14:08:34 +020031 client:
Michael Kutý17649402016-03-19 23:57:43 +010032 container:
Filip Pytloun87169542016-08-29 13:38:30 +020033 jenkins:
34 # Don't start automatically
35 start: false
36 restart: unless-stopped
37 image: jenkins:2.7.1
Michael Kutý17649402016-03-19 23:57:43 +010038 ports:
Filip Pytloun87169542016-08-29 13:38:30 +020039 - 8081:8080
40 - 50000:50000
41 environment:
42 JAVA_OPTS: "-Dhudson.footerURL=https://www.example.com"
43 volumes:
44 - /srv/volumes/jenkins:/var/jenkins_home
Michael Kutý17649402016-03-19 23:57:43 +010045
Filip Pytlounbaf94c92016-06-07 18:07:17 +020046Registry
47--------
48
49.. code-block:: yaml
50
51 docker:
52 registry:
53 log:
54 level: debug
55 formatter: json
56 cache:
57 engine: redis
58 host: localhost
59 storage:
60 engine: filesystem
61 root: /srv/docker/registry
62 bind:
63 host: 0.0.0.0
64 port: 5000
65 hook:
66 mail:
67 levels:
68 - panic
69 # Options are rendered as yaml as is so use hook-specific options here
70 options:
71 smtp:
72 addr: smtp.sendhost.com:25
73 username: sendername
74 password: password
75 insecure: true
76 from: name@sendhost.com
77 to:
78 - name@receivehost.com
79
marco85b72a62016-07-07 13:08:33 +020080Docker login to private registry
81--------------------------------
82
83.. code-block:: yaml
84
85 docker:
86 host:
87 enabled: true
88 registry:
89 first:
90 address: private.docker.com
91 user: username
92 password: password
93 second:
94 address: private2.docker.com
95 user: username2
96 password: password2
Michael Kutý17649402016-03-19 23:57:43 +010097
98Read more
99---------
100
101* https://docs.docker.com/installation/ubuntulinux/
102* https://github.com/saltstack-formulas/docker-formula
Filip Pytlounbaf94c92016-06-07 18:07:17 +0200103