Source repo for Docker's Documentation
Go to file
Eric Hawicz e29f6719f7
Note the max-retries option on the Start containers automatically page. (#13787)
* Note the max-retries option on the Start containers automatically page.

* Update format

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-11-26 13:04:14 +00:00
.docker use custom Dockerfile for Dev Environments image 2021-06-24 16:42:51 +02:00
.github Update the issue template (#13870) 2021-11-22 15:07:24 +00:00
_data buildx: manually patch some broken anchors 2021-10-13 16:33:49 +02:00
_deploy/nginx NGINX config: add redirect rules for obsolete archive pages 2020-02-28 15:10:24 +01:00
_includes Desktop 4.2 docs updates 2021-11-03 10:22:34 +00:00
_layouts Add homepage banner for volume management 2021-09-30 16:18:01 +01:00
_plugins relative_links_filter: do not replace html link 2021-09-13 23:02:46 +02:00
_samples/library Fix samples redirect, and remove old sshd from TOC 2021-04-24 11:33:17 +02:00
_scripts Change distribution URL to distribution/distribution (#13484) 2021-10-08 11:30:31 +01:00
_scss Apply suggestions from code review 2021-11-10 19:34:13 +01:00
buildx Update buildx docs (#13267) 2021-08-03 10:38:41 +01:00
ci-cd Minor changes to ci-cd/github-actions.md 2021-09-05 22:05:25 +05:30
cloud support note styling 2021-11-16 01:43:02 -07:00
compose take "+ tab" out of the monospaced codeword (#13730) 2021-11-19 12:49:44 +00:00
config Note the max-retries option on the Start containers automatically page. (#13787) 2021-11-26 13:04:14 +00:00
css Add access tokens API documentation (#13174) 2021-07-20 12:26:43 -05:00
datacenter Add enterprise redirect stubs 2020-06-02 09:47:11 +02:00
desktop Merge pull request #13889 from docker/mat007-patch-1 2021-11-25 16:03:20 +00:00
develop Link to detail about deploying a registry server (#13854) 2021-11-22 10:39:57 +00:00
docker-hub updated sentence 2021-11-05 11:16:03 -05:00
docker-id Remove support references 2020-09-14 08:01:34 +01:00
ee remove some ee "stubs", and move redirects 2021-05-20 22:30:33 +02:00
engine Merge pull request #13885 from rjharvey/master 2021-11-26 12:56:57 +00:00
favicons Use new favicon 2017-03-02 14:10:28 -08:00
fonts fonts: remove unused "Comfortaa" font 2020-10-16 23:19:16 +02:00
get-started Merge pull request #13868 from morganstaff/patch-2 2021-11-26 12:57:14 +00:00
go Update screenshots, add new Go file 2021-11-04 11:01:10 +00:00
images Some tweaks to the API styling 2021-06-09 17:14:58 +02:00
js Update download-links 2021-08-31 14:35:20 +00:00
kitematic Remove Kitematic docs, as it's deprecated 2021-08-09 12:58:36 +02:00
language Remove usage of outdated `GHCR_TOKEN` (#13710) 2021-11-26 12:38:53 +00:00
machine Add redirect for machine "drivers" page 2021-11-12 18:19:06 +01:00
network chore: add missing IPvlan in network drivers list 2021-11-07 16:29:58 +01:00
opensource update http://dockr.ly links to use TLS 2020-10-27 12:38:17 +01:00
reference Add a link to Hub API doc from Reference overview page (#12765) 2021-04-28 20:43:56 +01:00
registry Update insecure.md 2021-11-01 12:53:08 +11:00
release-notes desktop/windows: move older release notes to archive 2021-10-11 18:47:15 +02:00
samples Merge pull request #13821 from ghuntley/patch-1 2021-11-26 12:39:10 +00:00
storage Update inaccurate section headers for backing up/restoring volumes (#13860) 2021-11-19 14:37:46 +00:00
subscription updated self-serve (#13783) 2021-11-15 18:39:33 +00:00
tests Spelling revision 2018-09-23 21:43:11 +02:00
toolbox Merge branch 'master' into no-toolbox 2021-09-27 13:40:52 +01:00
.dockerignore Add GitHub action to upload S3 website configuration 2020-04-09 10:57:56 +02:00
.editorconfig Add .editorconfig 2021-07-12 09:07:16 +01:00
.env compose file: enable buildkit for building 2020-02-24 13:56:16 +01:00
.eslintignore Initial commit -f https://github.com/docker/mercury-ui 2016-09-28 14:39:20 -07:00
.gitattributes Add .gitattributes file for default line endings 2021-05-26 14:59:03 +01:00
.gitignore Add exported library stubs to git 2019-09-04 00:03:02 +02:00
.gitmodules Update .gitmodules 2018-11-16 09:27:08 +08:00
.markdownlint.json add mdlint json file to fix yaml copy/paste issues 2020-02-17 15:36:32 +00:00
.nojekyll Take down docker.github.io 2018-04-11 22:04:55 -07:00
.prettierignore Add .prettierignore 2021-07-12 09:07:16 +01:00
.ruby-version Ruby Ver Bump (#10040) 2019-12-16 12:36:41 +00:00
404.html Make changes based on feedback 2018-04-26 08:06:53 -07:00
404.md Replace "hide_from_sitemap" with "sitemap: false" 2020-10-21 15:09:11 +02:00
CONTRIBUTING.md CONTRIBUTING: remove mention of "v-next" branches 2020-10-23 14:46:43 +02:00
Dockerfile Use 20.10 release branch for upstream engine resources 2021-02-25 12:54:54 +01:00
Gemfile Dockerfile: update to gh-pages 198 2020-03-15 22:44:44 +01:00
LICENSE Content rendering fixes 2016-09-30 01:51:56 -07:00
README.md Improve code formatting 2021-06-29 15:47:18 +07:00
_config.yml _config.yml: remove temporary URL parameters 2021-09-01 09:55:42 +02:00
_config_production.yml remove old compliance upstream resource 2021-09-13 15:07:47 +02:00
_website-config-docs-stage.json update old "ee" redirects to go to our homepage 2021-04-21 12:29:22 +02:00
_website-config-docs.json update old "ee" redirects to go to our homepage 2021-04-21 12:29:22 +02:00
components.md Add missing code-hints, and minor markdown edits 2021-08-16 12:59:23 +02:00
docker-compose.yml Remove Compose file version from the yaml file 2021-09-22 10:54:40 +01:00
docsarchive.md Add missing code-hints, and minor markdown edits 2021-08-16 12:59:23 +02:00
favicon.ico Use new favicon 2017-03-02 14:10:28 -08:00
get-docker.md Add the next set of CTAs 2021-10-15 18:06:39 +01:00
glossary.md glossary: remove glossary search scripts 2020-10-08 09:58:24 +02:00
google161104f9fdea6089.html adding the verification file for robots.txt (#10241) 2020-02-06 10:29:16 +00:00
googlecbe7fee896be512c.html Website verification 2016-10-10 15:55:09 -07:00
index.html Make changes based on feedback 2018-04-26 08:06:53 -07:00
index.md add redirect for deprecated "docker for aws" and "docker for azure" 2021-11-11 14:32:09 +01:00
robots.txt Cleanup robots.txt 2020-07-02 23:36:57 +02:00
search.md js/search.js: rewrite local search autocomplete and update styling 2020-10-15 17:20:28 +02:00
test.md test.md: fix broken image link 2021-10-13 16:33:13 +02:00

README.md

Docs @ Docker

Welcome to the repo for our documentation. This is the source for https://docs.docker.com/.

Feel free to send us pull requests and file issues. Our docs are completely open source and we deeply appreciate contributions from our community!

Table of Contents

Providing feedback

We really want your feedback, and we've made it easy. You can edit a page or request changes in the right column of every page on docs.docker.com. You can also rate each page by clicking a link at the footer.

Only file issues about the documentation in this repository. One way to think about this is that you should file a bug here if your issue is that you don't see something that should be in the docs, or you see something incorrect or confusing in the docs.

  • If your problem is a general question about how to configure or use Docker, ask in https://forums.docker.com instead.

  • If you have an idea for a new feature or behavior change in a specific aspect of Docker, or have found a bug in part of Docker, file that issue in the project's code repository.

Contributing

We value your documentation contributions, and we want to make it as easy as possible to work in this repository. One of the first things to decide is which branch to base your work on. If you get confused, just ask and we will help. If a reviewer realizes you have based your work on the wrong branch, we'll let you know so that you can rebase it.

Note: To contribute code to Docker projects, see the Contribution guidelines.

Files not edited here

Files and directories listed in the path: keys in .NOT_EDITED_HERE.yaml are maintained in other repositories and should not be edited in this one. Pull requests against these files will be rejected. Make your edits to the files in the repository and path in the source: key in the YAML file.

Overall doc improvements

Pull requests should be opened against the master branch, this includes:

  • Conceptual and task-based information not specific to new features
  • Restructuring / rewriting
  • Doc bug fixing
  • Typos and grammar errors

Do you enjoy creating graphics? Good graphics are key to great documentation, and we especially value contributions in this area.

Per-PR staging on GitHub

For every PR against master, a staged version of the site is built using Netlify. If the site builds, you will see deploy/netlify — Deploy preview ready. Otherwise, you will see an error. Click Details to review the staged site or the errors that prevented it from building. Review the staged site and amend your commit if necessary. Reviewers will also check the staged site before merging the PR, to protect the integrity of https://docs.docker.com/.

Build and preview the docs locally

On your local machine, clone this repo:

git clone --recursive https://github.com/docker/docker.github.io.git
cd docker.github.io

Then build and run the documentation with Docker Compose

docker-compose up -d --build

Docker Compose is included with Docker Desktop. If you don't have Docker Compose installed, follow these installation instructions.

Once the container is built and running, visit http://localhost:4000 in your web browser to view the docs.

To rebuild the docs after you made changes, run the docker-compose up command again. This rebuilds the documentation, and updates the container with your changes:

docker-compose up -d --build

Once the container is built and running, visit http://localhost:4000 in your web browser to view the docs.

To stop the staging container, use the docker-compose down command:

docker-compose down

Build the docs with deployment features enabled

The default configuration for local builds of the documentation disables some features to allow for a shorter build-time. The following options differ between local builds, and builds that are deployed to docs.docker.com:

  • search auto-completion, and generation of js/metadata.json
  • google analytics
  • page ratings
  • sitemap.xml generation
  • minification of stylesheets (css/style.css)
  • adjusting "edit this page" links for content in other repositories

If you want to contribute in these areas, you can perform a "production" build locally.

To preview the documentation with deployment features enabled, you need to set the JEKYLL_ENV environment variable when building the documentation;

JEKYLL_ENV=production docker-compose up --build

Once the container is built and running, visit http://localhost:4000 in your web browser to view the docs.

To rebuild the docs after you make changes, repeat the steps above.

Important files

  • /_data/toc.yaml defines the left-hand navigation for the docs
  • /js/docs.js defines most of the docs-specific JS such as TOC generation and menu syncing
  • /css/style.scss defines the docs-specific style rules
  • /_layouts/docs.html is the HTML template file, which defines the header and footer, and includes all the JS/CSS that serves the docs content

Relative linking for GitHub viewing

Feel free to link to ../foo.md so that the docs are readable in GitHub, but keep in mind that Jekyll templating notation {% such as this %} will render in raw text and not be processed. In general it's best to assume the docs are being read directly on https://docs.docker.com/.

Testing changes and practical guidance

If you want to test a style change, or if you want to see how to achieve a particular outcome with Markdown, Bootstrap, JQuery, or something else, have a look at test.md (which renders in the site at /test/).

Per-page front-matter

The front-matter of a given page is in a section at the top of the Markdown file that starts and ends with three hyphens. It includes YAML content. The following keys are supported. The title, description, and keywords are required.

Key Required Description
title yes The page title. This is added to the HTML output as a <h1> level header.
description yes A sentence that describes the page contents. This is added to the HTML metadata.
keywords yes A comma-separated list of keywords. These are added to the HTML metadata.
redirect_from no A YAML list of pages which should redirect to THIS page. At build time, each page listed here is created as a HTML stub containing a 302 redirect to this page.
notoc no Either true or false. If true, no in-page TOC is generated for the HTML output of this page. Defaults to false. Appropriate for some landing pages that have no in-page headings.
toc_min no Ignored if notoc is set to true. The minimum heading level included in the in-page TOC. Defaults to 2, to show <h2> headings as the minimum.
toc_max no Ignored if notoc is set to false. The maximum heading level included in the in-page TOC. Defaults to 3, to show <h3> headings. Set to the same as toc_min to only show toc_min level of headings.
no_ratings no Either true or false. Set to true to disable the page-ratings applet for this page. Defaults to false.
skip_read_time no Set to true to disable the 'Estimated reading time' banner for this page.
sitemap no Exclude the page from indexing by search engines. When set to false, the page is excluded from sitemap.xml, and a <meta name="robots" content="noindex"/> header is added to the page.

The following is an example of valid (but contrived) page metadata. The order of the metadata elements in the front-matter is not important.

---
description: Instructions for installing Docker on Ubuntu
keywords: requirements, apt, installation, ubuntu, install, uninstall, upgrade, update
redirect_from:
- /engine/installation/ubuntulinux/
- /installation/ubuntulinux/
- /engine/installation/linux/ubuntulinux/
title: Get Docker for Ubuntu
toc_min: 1
toc_max: 6
skip_read_time: true
no_ratings: true
---

Creating tabs

The use of tabs, as on pages like https://docs.docker.com/engine/api/, requires the use of HTML. The tabs use Bootstrap CSS/JS, so refer to those docs for more advanced usage. For a basic horizontal tab set, copy/paste starting from this code and implement from there. Keep an eye on those href="#id" and id="id" references as you rename, add, and remove tabs.

<ul class="nav nav-tabs">
  <li class="active"><a data-toggle="tab" data-target="#tab1">TAB 1 HEADER</a></li>
  <li><a data-toggle="tab" data-target="#tab2">TAB 2 HEADER</a></li>
</ul>
<div class="tab-content">
  <div id="tab1" class="tab-pane fade in active">TAB 1 CONTENT</div>
  <div id="tab2" class="tab-pane fade">TAB 2 CONTENT</div>
</div>

For more info and a few more permutations, see test.md.

Running in-page Javascript

If you need to run custom Javascript within a page, and it depends upon JQuery or Bootstrap, make sure the <script> tags are at the very end of the page, after all the content. Otherwise the script may try to run before JQuery and Bootstrap JS are loaded.

Note: In general, this is a bad idea.

Images

Don't forget to remove images that are no longer used. Keep the images sorted in the local images/ directory, with names that naturally group related images together in alphabetical order. For instance prefer settings-file-share.png and settings-proxies.png to file-share-settings.png and proxies-settings.png. You may also use numbers, especially in the case of a sequence, e.g., run-only-the-images-you-trust-1.svg run-only-the-images-you-trust-2.png run-only-the-images-you-trust-3.png.

When applicable, capture windows rather than rectangular regions. This eliminates unpleasant background and saves the editors the need to crop.

On Mac, capture windows without shadows. To this end, once you pressed Command-Shift-4, press Option while clicking on the window. To disable shadows once for all, run:

$ defaults write com.apple.screencapture disable-shadow -bool TRUE
$ killall SystemUIServer  # restart it.

You can restore shadows later with -bool FALSE.

In order to keep the Git repository light, please compress the images (losslessly). On Mac you may use ImageOptim for instance. Be sure to compress the images before adding them to the repository, doing it afterwards actually worsens the impact on the Git repo (but still optimizes the bandwidth during browsing).

Copyright 2013-2021 Docker, inc, released under the Apache 2.0 license.