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]-->
6 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge">
7 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
10 <link rel=
"shortcut icon" href=
"../img/favicon.ico">
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'
>
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">
21 var mkdocs_page_name = "Docker
101";
22 var mkdocs_page_input_path = "Docker-
101.md";
23 var mkdocs_page_url = "/Docker-
101/";
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>
32 <body class=
"wy-body-for-nav" role=
"document">
34 <div class=
"wy-grid-for-nav">
37 <nav data-toggle=
"wy-nav-shift" class=
"wy-nav-side stickynav">
38 <div class=
"wy-side-nav-search">
39 <a href=
".." class=
"icon icon-home"> Shaarli Documentation
</a>
41 <form id =
"rtd-search-form" class=
"wy-form" action=
"../search.html" method=
"get">
42 <input type=
"text" name=
"q" placeholder=
"Search docs" />
47 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
51 <li class=
"toctree-l1">
53 <a class=
"" href=
"..">Home
</a>
56 <li class=
"toctree-l1">
58 <span class=
"caption-text">Setup
</span>
62 <a class=
"" href=
"../Download-and-Installation/">Download and Installation
</a>
66 <a class=
"" href=
"../Upgrade-and-migration/">Upgrade and migration
</a>
70 <a class=
"" href=
"../Server-requirements/">Server requirements
</a>
74 <a class=
"" href=
"../Server-configuration/">Server configuration
</a>
78 <a class=
"" href=
"../Server-security/">Server security
</a>
82 <a class=
"" href=
"../Shaarli-configuration/">Shaarli configuration
</a>
86 <a class=
"" href=
"../Plugins/">Plugins
</a>
91 <li class=
"toctree-l1">
93 <span class=
"caption-text">Docker
</span>
97 <a class=
"current" href=
"./">Docker
101</a>
100 <li class=
"toctree-l3"><a href=
"#basics">Basics
</a></li>
104 <li><a class=
"toctree-l4" href=
"#search-an-image-on-dockerhub">Search an image on DockerHub
</a></li>
106 <li><a class=
"toctree-l4" href=
"#show-available-tags-for-a-repository">Show available tags for a repository
</a></li>
108 <li><a class=
"toctree-l4" href=
"#pull-an-image-from-dockerhub">Pull an image from DockerHub
</a></li>
117 <a class=
"" href=
"../Shaarli-images/">Shaarli images
</a>
121 <a class=
"" href=
"../Reverse-proxy-configuration/">Reverse proxy configuration
</a>
125 <a class=
"" href=
"../Docker-resources/">Docker resources
</a>
130 <li class=
"toctree-l1">
132 <span class=
"caption-text">Usage
</span>
136 <a class=
"" href=
"../Features/">Features
</a>
140 <a class=
"" href=
"../Bookmarklet/">Bookmarklet
</a>
144 <a class=
"" href=
"../Browsing-and-searching/">Browsing and searching
</a>
148 <a class=
"" href=
"../Firefox-share/">Firefox share
</a>
152 <a class=
"" href=
"../RSS-feeds/">RSS feeds
</a>
156 <a class=
"" href=
"../REST-API/">REST API
</a>
161 <li class=
"toctree-l1">
163 <span class=
"caption-text">How To
</span>
167 <a class=
"" href=
"../Backup,-restore,-import-and-export/">Backup, restore, import and export
</a>
171 <a class=
"" href=
"../Copy-an-existing-installation-over-SSH-and-serve-it-locally/">Copy an existing installation over SSH and serve it locally
</a>
175 <a class=
"" href=
"../Create-and-serve-multiple-Shaarlis-(farm)/">Create and serve multiple Shaarlis (farm)
</a>
179 <a class=
"" href=
"../Download-CSS-styles-from-an-OPML-list/">Download CSS styles from an OPML list
</a>
183 <a class=
"" href=
"../Datastore-hacks/">Datastore hacks
</a>
188 <li class=
"toctree-l1">
190 <a class=
"" href=
"../Troubleshooting/">Troubleshooting
</a>
193 <li class=
"toctree-l1">
195 <span class=
"caption-text">Development
</span>
199 <a class=
"" href=
"../Development-guidelines/">Development guidelines
</a>
203 <a class=
"" href=
"../Continuous-integration-tools/">Continuous integration tools
</a>
207 <a class=
"" href=
"../GnuPG-signature/">GnuPG signature
</a>
211 <a class=
"" href=
"../Coding-guidelines/">Coding guidelines
</a>
215 <a class=
"" href=
"../Directory-structure/">Directory structure
</a>
219 <a class=
"" href=
"../3rd-party-libraries/">3rd party libraries
</a>
223 <a class=
"" href=
"../Plugin-System/">Plugin System
</a>
227 <a class=
"" href=
"../Release-Shaarli/">Release Shaarli
</a>
231 <a class=
"" href=
"../Versioning-and-Branches/">Versioning and Branches
</a>
235 <a class=
"" href=
"../Security/">Security
</a>
239 <a class=
"" href=
"../Static-analysis/">Static analysis
</a>
243 <a class=
"" href=
"../Theming/">Theming
</a>
247 <a class=
"" href=
"../Unit-tests/">Unit tests
</a>
252 <li class=
"toctree-l1">
254 <span class=
"caption-text">About
</span>
258 <a class=
"" href=
"../FAQ/">FAQ
</a>
262 <a class=
"" href=
"../Community-&-Related-software/">Community & Related software
</a>
272 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
275 <nav class=
"wy-nav-top" role=
"navigation" aria-label=
"top navigation">
276 <i data-toggle=
"wy-nav-top" class=
"fa fa-bars"></i>
277 <a href=
"..">Shaarli Documentation
</a>
281 <div class=
"wy-nav-content">
282 <div class=
"rst-content">
283 <div role=
"navigation" aria-label=
"breadcrumbs navigation">
284 <ul class=
"wy-breadcrumbs">
285 <li><a href=
"..">Docs
</a> »</li>
289 <li>Docker
»</li>
294 <li class=
"wy-breadcrumbs-aside">
296 <a href=
"https://github.com/shaarli/Shaarli/edit/master/docs/Docker-101.md"
297 class=
"icon icon-github"> Edit on GitHub
</a>
304 <div class=
"section">
306 <h2 id=
"basics">Basics
</h2>
307 <p>Install
<a href=
"https://www.docker.com/">Docker
</a>, by following the instructions relevant
308 to your OS / distribution, and start the service.
</p>
309 <h3 id=
"search-an-image-on-dockerhub">Search an image on
<a href=
"https://hub.docker.com/">DockerHub
</a></h3>
310 <pre><code class=
"bash">$ docker search debian
312 NAME DESCRIPTION STARS OFFICIAL AUTOMATED
313 ubuntu Ubuntu is a Debian-based Linux operating s...
2065 [OK]
314 debian Debian is a Linux distribution that's comp...
603 [OK]
315 google/debian
47 [OK]
318 <h3 id=
"show-available-tags-for-a-repository">Show available tags for a repository
</h3>
319 <pre><code class=
"bash">$ curl https://index.docker.io/v1/repositories/debian/tags | python -m json.tool
321 % Total % Received % Xferd Average Speed Time Time Time Current
322 Dload Upload Total Spent Left Speed
323 100 1283 0 1283 0 0 433 0 --:--:--
0:
00:
02 --:--:--
433
326 <p>Sample output:
</p>
327 <pre><code class=
"json">[
329 "layer
":
"85a02782
",
330 "name
":
"stretch
"
333 "layer
":
"59abecbc
",
334 "name
":
"testing
"
337 "layer
":
"bf0fd686
",
338 "name
":
"unstable
"
341 "layer
":
"60c52dbe
",
342 "name
":
"wheezy
"
345 "layer
":
"c5b806fe
",
346 "name
":
"wheezy-backports
"
352 <h3 id=
"pull-an-image-from-dockerhub">Pull an image from DockerHub
</h3>
353 <pre><code class=
"bash">$ docker pull repository[:tag]
355 $ docker pull debian:wheezy
356 wheezy: Pulling from debian
357 4c8cbfd2973e: Pull complete
358 60c52dbe9d91: Pull complete
359 Digest: sha256:c584131da2ac1948aa3e66468a4424b6aea2f33acba7cec0b631bdb56254c4fe
360 Status: Downloaded newer image for debian:wheezy
367 <div class=
"rst-footer-buttons" role=
"navigation" aria-label=
"footer navigation">
369 <a href=
"../Shaarli-images/" class=
"btn btn-neutral float-right" title=
"Shaarli images">Next
<span class=
"icon icon-circle-arrow-right"></span></a>
372 <a href=
"../Plugins/" class=
"btn btn-neutral" title=
"Plugins"><span class=
"icon icon-circle-arrow-left"></span> Previous
</a>
379 <div role=
"contentinfo">
380 <!-- Copyright etc -->
384 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>.
394 <div class=
"rst-versions" role=
"note" style=
"cursor: pointer">
395 <span class=
"rst-current-version" data-toggle=
"rst-current-version">
397 <a href=
"https://github.com/shaarli/Shaarli" class=
"fa fa-github" style=
"float: left; color: #fcfcfc"> GitHub
</a>
400 <span><a href=
"../Plugins/" style=
"color: #fcfcfc;">« Previous
</a></span>
403 <span style=
"margin-left: 15px"><a href=
"../Shaarli-images/" style=
"color: #fcfcfc">Next
»</a></span>
407 <script src=
"../js/theme.js"></script>