blob: 002694c763dc3c9a32cc0d32cd1989d85d2ba112 [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
55
56Read more
57---------
58
59* https://docs.docker.com/installation/ubuntulinux/
60* https://github.com/saltstack-formulas/docker-formula
61