]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - doc/html/docker/docker-101/index.html
Generate HTML documentation
[github/shaarli/Shaarli.git] / doc / html / docker / docker-101 / index.html
CommitLineData
53ed6d7d 1<!DOCTYPE html>
2<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
3<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
4<head>
5 <meta charset="utf-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
9
3a6f91a9 10 <link rel="shortcut icon" href="../../img/favicon.ico">
53ed6d7d 11 <title>Docker 101 - Shaarli Documentation</title>
12 <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
13
3a6f91a9
V
14 <link rel="stylesheet" href="../../css/theme.css" type="text/css" />
15 <link rel="stylesheet" href="../../css/theme_extra.css" type="text/css" />
16 <link rel="stylesheet" href="../../css/highlight.css">
17 <link href="../../github-markdown.css" rel="stylesheet">
53ed6d7d 18
19 <script>
20 // Current page data
21 var mkdocs_page_name = "Docker 101";
3a6f91a9
V
22 var mkdocs_page_input_path = "docker/docker-101.md";
23 var mkdocs_page_url = "/docker/docker-101/";
53ed6d7d 24 </script>
25
3a6f91a9
V
26 <script src="../../js/jquery-2.1.1.min.js"></script>
27 <script src="../../js/modernizr-2.8.3.min.js"></script>
28 <script type="text/javascript" src="../../js/highlight.pack.js"></script>
53ed6d7d 29
30</head>
31
32<body class="wy-body-for-nav" role="document">
33
34 <div class="wy-grid-for-nav">
35
36
37 <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
38 <div class="wy-side-nav-search">
3a6f91a9 39 <a href="../.." class="icon icon-home"> Shaarli Documentation</a>
53ed6d7d 40 <div role="search">
3a6f91a9 41 <form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
53ed6d7d 42 <input type="text" name="q" placeholder="Search docs" />
43 </form>
44</div>
45 </div>
46
47 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
48 <ul class="current">
49
50
51 <li class="toctree-l1">
52
3a6f91a9 53 <a class="" href="../..">Home</a>
53ed6d7d 54 </li>
55
56 <li class="toctree-l1">
57
58 <span class="caption-text">Setup</span>
59 <ul class="subnav">
60 <li class="">
61
3a6f91a9 62 <a class="" href="../../Download-and-Installation/">Download and Installation</a>
53ed6d7d 63 </li>
64 <li class="">
65
3a6f91a9 66 <a class="" href="../../Upgrade-and-migration/">Upgrade and migration</a>
53ed6d7d 67 </li>
68 <li class="">
69
3a6f91a9 70 <a class="" href="../../Server-requirements/">Server requirements</a>
53ed6d7d 71 </li>
72 <li class="">
73
3a6f91a9 74 <a class="" href="../../Server-configuration/">Server configuration</a>
53ed6d7d 75 </li>
76 <li class="">
77
3a6f91a9 78 <a class="" href="../../Server-security/">Server security</a>
53ed6d7d 79 </li>
80 <li class="">
81
3a6f91a9 82 <a class="" href="../../Shaarli-configuration/">Shaarli configuration</a>
53ed6d7d 83 </li>
84 <li class="">
85
3a6f91a9 86 <a class="" href="../../Plugins/">Plugins</a>
53ed6d7d 87 </li>
88 </ul>
89 </li>
90
91 <li class="toctree-l1">
92
93 <span class="caption-text">Docker</span>
94 <ul class="subnav">
95 <li class=" current">
96
97 <a class="current" href="./">Docker 101</a>
98 <ul class="subnav">
99
100 <li class="toctree-l3"><a href="#basics">Basics</a></li>
101
102 <ul>
103
104 <li><a class="toctree-l4" href="#search-an-image-on-dockerhub">Search an image on DockerHub</a></li>
105
106 <li><a class="toctree-l4" href="#show-available-tags-for-a-repository">Show available tags for a repository</a></li>
107
108 <li><a class="toctree-l4" href="#pull-an-image-from-dockerhub">Pull an image from DockerHub</a></li>
109
110 </ul>
111
112
113 </ul>
114 </li>
115 <li class="">
116
3a6f91a9 117 <a class="" href="../shaarli-images/">Shaarli images</a>
53ed6d7d 118 </li>
119 <li class="">
120
3a6f91a9 121 <a class="" href="../reverse-proxy-configuration/">Reverse proxy configuration</a>
53ed6d7d 122 </li>
123 <li class="">
124
3a6f91a9 125 <a class="" href="../resources/">Docker resources</a>
53ed6d7d 126 </li>
127 </ul>
128 </li>
129
130 <li class="toctree-l1">
131
132 <span class="caption-text">Usage</span>
133 <ul class="subnav">
134 <li class="">
135
3a6f91a9 136 <a class="" href="../../Features/">Features</a>
53ed6d7d 137 </li>
138 <li class="">
139
3a6f91a9 140 <a class="" href="../../Bookmarklet/">Bookmarklet</a>
53ed6d7d 141 </li>
142 <li class="">
143
3a6f91a9 144 <a class="" href="../../Browsing-and-searching/">Browsing and searching</a>
53ed6d7d 145 </li>
146 <li class="">
147
3a6f91a9 148 <a class="" href="../../Firefox-share/">Firefox share</a>
53ed6d7d 149 </li>
150 <li class="">
151
3a6f91a9 152 <a class="" href="../../RSS-feeds/">RSS feeds</a>
53ed6d7d 153 </li>
154 <li class="">
155
3a6f91a9 156 <a class="" href="../../REST-API/">REST API</a>
53ed6d7d 157 </li>
158 </ul>
159 </li>
160
161 <li class="toctree-l1">
162
163 <span class="caption-text">How To</span>
164 <ul class="subnav">
165 <li class="">
166
3a6f91a9 167 <a class="" href="../../Backup,-restore,-import-and-export/">Backup, restore, import and export</a>
53ed6d7d 168 </li>
169 <li class="">
170
3a6f91a9 171 <a class="" href="../../Various-hacks/">Various hacks</a>
53ed6d7d 172 </li>
173 </ul>
174 </li>
175
176 <li class="toctree-l1">
177
3a6f91a9 178 <a class="" href="../../Troubleshooting/">Troubleshooting</a>
53ed6d7d 179 </li>
180
181 <li class="toctree-l1">
182
183 <span class="caption-text">Development</span>
184 <ul class="subnav">
185 <li class="">
186
3a6f91a9 187 <a class="" href="../../Development-guidelines/">Development guidelines</a>
53ed6d7d 188 </li>
189 <li class="">
190
3a6f91a9 191 <a class="" href="../../Continuous-integration-tools/">Continuous integration tools</a>
53ed6d7d 192 </li>
193 <li class="">
194
3a6f91a9 195 <a class="" href="../../GnuPG-signature/">GnuPG signature</a>
53ed6d7d 196 </li>
197 <li class="">
198
3a6f91a9 199 <a class="" href="../../Coding-guidelines/">Coding guidelines</a>
53ed6d7d 200 </li>
201 <li class="">
202
3a6f91a9 203 <a class="" href="../../Directory-structure/">Directory structure</a>
53ed6d7d 204 </li>
205 <li class="">
206
3a6f91a9 207 <a class="" href="../../3rd-party-libraries/">3rd party libraries</a>
53ed6d7d 208 </li>
209 <li class="">
210
3a6f91a9 211 <a class="" href="../../Plugin-System/">Plugin System</a>
53ed6d7d 212 </li>
213 <li class="">
214
3a6f91a9 215 <a class="" href="../../Release-Shaarli/">Release Shaarli</a>
53ed6d7d 216 </li>
217 <li class="">
218
3a6f91a9 219 <a class="" href="../../Versioning-and-Branches/">Versioning and Branches</a>
53ed6d7d 220 </li>
221 <li class="">
222
3a6f91a9 223 <a class="" href="../../Security/">Security</a>
53ed6d7d 224 </li>
225 <li class="">
226
3a6f91a9 227 <a class="" href="../../Static-analysis/">Static analysis</a>
53ed6d7d 228 </li>
229 <li class="">
230
3a6f91a9 231 <a class="" href="../../Theming/">Theming</a>
53ed6d7d 232 </li>
233 <li class="">
234
3a6f91a9 235 <a class="" href="../../Unit-tests/">Unit tests</a>
53ed6d7d 236 </li>
237 </ul>
238 </li>
239
240 <li class="toctree-l1">
241
242 <span class="caption-text">About</span>
243 <ul class="subnav">
244 <li class="">
245
3a6f91a9 246 <a class="" href="../../FAQ/">FAQ</a>
53ed6d7d 247 </li>
248 <li class="">
249
3a6f91a9 250 <a class="" href="../../Community-&-Related-software/">Community & Related software</a>
53ed6d7d 251 </li>
252 </ul>
253 </li>
254
255 </ul>
256 </div>
257 &nbsp;
258 </nav>
259
260 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
261
262
263 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
264 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
3a6f91a9 265 <a href="../..">Shaarli Documentation</a>
53ed6d7d 266 </nav>
267
268
269 <div class="wy-nav-content">
270 <div class="rst-content">
271 <div role="navigation" aria-label="breadcrumbs navigation">
272 <ul class="wy-breadcrumbs">
3a6f91a9 273 <li><a href="../..">Docs</a> &raquo;</li>
53ed6d7d 274
275
276
277 <li>Docker &raquo;</li>
278
279
280
281 <li>Docker 101</li>
282 <li class="wy-breadcrumbs-aside">
283
3a6f91a9 284 <a href="https://github.com/shaarli/Shaarli/edit/master/docs/docker/docker-101.md"
53ed6d7d 285 class="icon icon-github"> Edit on GitHub</a>
286
287 </li>
288 </ul>
289 <hr/>
290</div>
291 <div role="main">
292 <div class="section">
293
294 <h2 id="basics">Basics</h2>
295<p>Install <a href="https://www.docker.com/">Docker</a>, by following the instructions relevant
296to your OS / distribution, and start the service.</p>
297<h3 id="search-an-image-on-dockerhub">Search an image on <a href="https://hub.docker.com/">DockerHub</a></h3>
298<pre><code class="bash">$ docker search debian
299
300NAME DESCRIPTION STARS OFFICIAL AUTOMATED
301ubuntu Ubuntu is a Debian-based Linux operating s... 2065 [OK]
302debian Debian is a Linux distribution that's comp... 603 [OK]
303google/debian 47 [OK]
304</code></pre>
305
306<h3 id="show-available-tags-for-a-repository">Show available tags for a repository</h3>
307<pre><code class="bash">$ curl https://index.docker.io/v1/repositories/debian/tags | python -m json.tool
308
309% Total % Received % Xferd Average Speed Time Time Time Current
310Dload Upload Total Spent Left Speed
311100 1283 0 1283 0 0 433 0 --:--:-- 0:00:02 --:--:-- 433
312</code></pre>
313
314<p>Sample output:</p>
315<pre><code class="json">[
316 {
317 &quot;layer&quot;: &quot;85a02782&quot;,
318 &quot;name&quot;: &quot;stretch&quot;
319 },
320 {
321 &quot;layer&quot;: &quot;59abecbc&quot;,
322 &quot;name&quot;: &quot;testing&quot;
323 },
324 {
325 &quot;layer&quot;: &quot;bf0fd686&quot;,
326 &quot;name&quot;: &quot;unstable&quot;
327 },
328 {
329 &quot;layer&quot;: &quot;60c52dbe&quot;,
330 &quot;name&quot;: &quot;wheezy&quot;
331 },
332 {
333 &quot;layer&quot;: &quot;c5b806fe&quot;,
334 &quot;name&quot;: &quot;wheezy-backports&quot;
335 }
336]
337
338</code></pre>
339
340<h3 id="pull-an-image-from-dockerhub">Pull an image from DockerHub</h3>
341<pre><code class="bash">$ docker pull repository[:tag]
342
343$ docker pull debian:wheezy
344wheezy: Pulling from debian
3454c8cbfd2973e: Pull complete
34660c52dbe9d91: Pull complete
347Digest: sha256:c584131da2ac1948aa3e66468a4424b6aea2f33acba7cec0b631bdb56254c4fe
348Status: Downloaded newer image for debian:wheezy
349</code></pre>
350
351 </div>
352 </div>
353 <footer>
354
355 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
356
3a6f91a9 357 <a href="../shaarli-images/" class="btn btn-neutral float-right" title="Shaarli images">Next <span class="icon icon-circle-arrow-right"></span></a>
53ed6d7d 358
359
3a6f91a9 360 <a href="../../Plugins/" class="btn btn-neutral" title="Plugins"><span class="icon icon-circle-arrow-left"></span> Previous</a>
53ed6d7d 361
362 </div>
363
364
365 <hr/>
366
367 <div role="contentinfo">
368 <!-- Copyright etc -->
369
370 </div>
371
372 Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
373</footer>
374
375 </div>
376 </div>
377
378 </section>
379
380 </div>
381
382 <div class="rst-versions" role="note" style="cursor: pointer">
383 <span class="rst-current-version" data-toggle="rst-current-version">
384
385 <a href="https://github.com/shaarli/Shaarli" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
386
387
3a6f91a9 388 <span><a href="../../Plugins/" style="color: #fcfcfc;">&laquo; Previous</a></span>
53ed6d7d 389
390
3a6f91a9 391 <span style="margin-left: 15px"><a href="../shaarli-images/" style="color: #fcfcfc">Next &raquo;</a></span>
53ed6d7d 392
393 </span>
394</div>
3a6f91a9 395 <script src="../../js/theme.js"></script>
53ed6d7d 396
397</body>
398</html>