Commit Graph

213 Commits

Author SHA1 Message Date
Alessandro Lenzen 1ef73b3a8a fix segfault 2021-06-14 16:21:25 +02:00
Alessandro Lenzen c01d6232da update example from xenial/16.04 to focal/20.04 2021-06-14 16:20:26 +02:00
Alessandro Lenzen 987c4a9357 fix links to glossary 2021-06-14 16:06:55 +02:00
Nils Breunese f21afebf4b
Alpine Linux is no longer under 5 MB
`alpine:latest` is currently 5.61 MB.
2021-06-08 13:54:31 +02:00
Liran Tal 8e80ec3dc0
Feat: adding Node.js specific learn resources 2021-06-02 17:32:45 +03:00
Petr Razumov d77568872b
Fix links to glossary terms 2021-06-02 00:42:40 +03:00
Usha Mandya 4219284bba Fix a typo
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-05-26 13:37:43 +01:00
Usha Mandya 5cf0154179 Add Docker Scan best practices guide
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-05-25 18:20:44 +01:00
Kickimanjaro 0d5c87d584
#12800
This initially looked like a typo (reported in #12800) but I believe it is actually just an extra word that can be removed.
2021-05-05 10:43:19 -06:00
Usha Mandya f47930bcb0
Merge branch 'master' into build-secrets 2021-04-23 10:26:25 +01:00
Sebastiaan van Stijn e22984f7d4
use Dockerfile "syntax" directive in examples
BuildKit allows using alternative Dockerfile syntaxes to introduce new features
without having to update Docker itself. The general recommendation is to always
specify a "syntax" directive in a Dockerfile, so that (if needed) older versions
of Docker can download the correct syntax to build the Dockerfile.

This updates our examples to include a syntax directive, to make users more familiar
with these directives, and to illustrate best-pracitces in our documentation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-20 10:19:12 +02:00
Sebastiaan van Stijn f4ed09424b
move compose examples to the samples directory
Unifying all "examples" in this directory; some of these should still be
reviewed and/or removed in favor of examples from "awesome compose"

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-19 10:38:56 +02:00
Sebastiaan van Stijn e4455a5f8f
Add / update some redirects for old URLs, and move old engine examples
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-19 10:38:52 +02:00
Chris Crone fc7a472277 develop.build: Update secrets example
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-04-16 19:29:21 +02:00
Itamar Turner-Trauring bce3cbf09d
Stop telling people not to install security updates 2021-03-25 08:41:05 -04:00
Mossroy b968f80922
Fix minor typo in example of documentation
I suppose the directory where to extract postgresql should be called postgres instead of postgress
2021-03-12 22:01:48 +01:00
Jesper Rønn-Jensen 2ef942f78b
Add compatibility notes for docker multistage build (#12379)
* add compatibility notes for docker multistage build

add note that multistage docker builds are supported from version 17.05 and upwards.

(this is according to the release notes https://docs.docker.com/engine/release-notes/17.05/)

* Minor update

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-03-05 14:56:50 +00:00
Usha Mandya 332f38eb12
Update develop/index.md
Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
2021-02-25 12:17:06 +00:00
Muhammad Tehami 97a48fa9b4 Add links to Docker Engine SDK and the HTTP API 2021-02-23 17:30:11 +05:00
Henare Degan 8889138246
Fix typo in Dockerfile Best Practices ENV section
The example below this change shows that the ENV value can be dumped so I think this was a typo saying that the ENV value can't be dumped.
2021-02-10 14:14:40 +11:00
Sebastiaan van Stijn 340fe84d1b
Update links to mkimage example scripts
Link to the contrib directory instead of individual scripts.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-01-05 14:55:58 +01:00
lemonez 5b6824c105
Update dev-best-practices.md
minor typo fix
2020-11-06 07:52:32 -08:00
Usha Mandya 3fd2cb1e10
Merge pull request #11480 from nathanl/patch-1
Note that `ssh-add` may be needed
2020-11-04 15:17:50 +00:00
Sebastiaan van Stijn 2ce808edc0
Remove references to obsolete engine versions
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-26 15:45:07 +01:00
Sebastiaan van Stijn c119ed174e
Use https:// for links and examples
Found these using `http://[^lp10\*`<][^o]` (to exclude "localhost" and IP-addresses)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:09:11 +02:00
Sebastiaan van Stijn 393d3f6566
Add rel="noopener" to external links
See https://web.dev/external-anchors-use-rel-noopener/

Using noopener, as that addresses the security issue. "noreferer" blocks
the REFERER header, which may still be useful for some target URLs.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-12 13:09:30 +02:00
Nathan Long 349d17db12
Note that `ssh-add` may be needed 2020-10-05 15:33:03 -04:00
Duncan Ogilvie 62cf39dfbf
Make first apt example follow all best practices
This is a bit of a draft, but I came across this issue in the documentation. When I searched for `docker apt-get` I found this page and copy-pasted the first example, but then I remembered it's best practice to install all packages at once and after that clear the `lists` to minimize the image size. Putting the example with all best practices first might help newer docker users to produce smaller images.
2020-09-28 22:55:35 +02:00
Sebastiaan van Stijn f6adc80d9a
remove examples for ENV key value without '='
The `ENV key value` form can be ambiguous, for example, the following defines
a single env-variable (`ONE`) with value `"TWO= THREE=world"`:

    ENV ONE TWO= THREE=world

While we cannot deprecate/remove that syntax (as it would break existing
Dockerfiles), we should reduce exposure of the format in our examples.

Also updating some code-blocks that were missing language-hints

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-09-23 15:16:35 +02:00
Saleem Abu Shelbayeh 5108496f84
Fix [Ruby on Rails app on Docker lab] link
Added the word "lap" inside the link tag.
2020-08-30 11:42:32 +03:00
Sebastiaan van Stijn 3e767a72b3
Update architectures in matrix (#10999)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-16 14:39:07 +01:00
Shakti Singh f71cf9b992
Updates on the page hyperlinks (#10931)
* Updates on the page hyperlinks 

updates statements in both 
## Develop new apps on Docker
## Learn about language-specific app development with Docker

* Minor style edits

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2020-06-02 09:00:35 +01:00
Sebastiaan van Stijn 9cd60d843e
develop: use relative markdown links
Unfortunately, the only reliable way to create internal links
is to use relative links to other Markdown files. This does
match the way links on GitHub work, but makes it harder to
create these links.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:15 +02:00
Usha Mandya 4b1b6826a4
Merge pull request #10659 from ajay143444/patch-2
changed check to check-in
2020-04-22 10:38:28 +00:00
ajay143444 2e9d7cf5aa
removed hyphen from check in 2020-04-22 15:49:50 +05:30
ajay143444 21a633cd59
changed lots more to lots of (#10664)
changed lots more to lots of
2020-04-22 09:10:24 +01:00
ajay143444 7bd9befce0
contained by changed to contained in (#10663)
contained by changed to contained in
2020-04-22 09:09:22 +01:00
ajay143444 60132211b6
Update develop/dev-best-practices.md
commted your suggestion

Co-Authored-By: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
2020-04-20 16:12:58 +05:30
ajay143444 5f8cedaf5a
changed check to check-in
corrected line 84 by changing check to check-in
2020-04-20 15:25:10 +05:30
Sebastiaan van Stijn 331554f4b3
Fix various links that were generating URLs with `.md` (#10548)
* Fix incorrect links in compose section

there's a bug causing wrapped links to not work, and replacing
some links to point to the .md file, so that IDE's can check
if the anchors are valid. Also replaced some links to point
to their new location.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* engine/swarm: update links

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* Fix various broken links

There's a bug in the "jekyll-relative-links" plugin that causes wrapped links to not work.
Also replacing some links to point to the .md file, so that IDE's can check if the anchors
are valid. Finally, replaced some links to point to their new locations, so that users don't
get redirected..

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-01 12:05:50 +01:00
Sebastiaan van Stijn 43bba8317c
Develop with Docker: remove nesting, and some restructuring
- Remove the "Develop your apps on Docker" section, as there
  was only a single section.
- Shorten titles in the navigation: the page itself still
  has the full title. Some titles also didn't match the
  title on the page.
- Changed "Docker build enhancements for 18.09" to
  "Build images with BuildKit" to help discovery of the
  BuildKit back-end.
- Some minor (Markdown) touch-ups of the BuildKit topic.
- Moved "Create a base image" lower in the navigation,
  because it's an advanced topic that most users won't
  be using (generally, using the official base images
  from Docker Hub would be recommended).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-19 11:55:22 +01:00
Sebastiaan van Stijn 14bbe621e5
Update markdown language hints to work with "rouge"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-17 14:49:51 +01:00
Usha Mandya 1566e01673 Moved topics under engine/api/ 2020-02-21 16:44:41 +00:00
Usha Mandya 36aba6a7c6
Get started docs updates (#10218)
* Update Get started docs

* update part-1, add redirects

* draft updates to part 2 and 3

* tidy up the orchestration topics

* update examples, and other minor edits

* address Stefan's review comments

* moved orchestration to a new node

* fix Ben's review comments

* add email verification step

* Emphasize the CTA in part 3
2020-02-14 17:24:50 +00:00
Shivang Goswami 94879d3ac2
In line 657,it should be can't instead of can
"Can" in place of "can't" is making the meaning of the paragraph confusing.In additional,it is in contrast with the example provided.
2019-12-24 22:33:28 +05:30
Jeff Anderson eeea0d586a Call out FROM can take a previous stage (#9566)
The included example could be improved with a more concrete use case, but illustrates the capability as is.
2019-12-09 10:48:45 +00:00
Dawn-Docker 3c54d2ff9c
Update toc (#9819) 2019-11-08 08:13:40 -08:00
lena-larionova 54ca6a523b
Fixing glossary links (#9812)
Signed-off-by: Lena Larionova <lena.larionova@docker.com>
2019-11-06 11:00:13 -08:00
Renan Roggia 09c8a2d726 Update references to the get-started pages (#9651) 2019-10-16 11:27:18 -07:00
jamesche75 17a24ef257 Updated bullet on FROM instruction. (#7275)
If you try and build an image without a FROM instruction in the Dockerfile, the Docker daemon will throw an error. You must include "FROM scratch" to build a base image.
2019-09-06 11:57:27 +01:00
Jose J. Escobar 3279c447b6 Update dockerfile_best-practices.md (#9335)
Just two typos
2019-09-02 18:50:06 +01:00
AlberTo de Prezzo 7ca2ef679e Update index.md (#9078)
"io" needs to be imported, in order to avoid " undefined: io" error. 
(go version: go1.12.5 linux/amd64)

P.S: import statements are reordered/formatted (gofmt).

Cheers
2019-08-19 15:23:58 +01:00
Pierre-Antoine Couaillier c60d3ca8d1 add some details on limitation of buildkit with UCP (#9118)
add details on limitation of buildkit with UCP
2019-08-19 15:14:04 +01:00
Victor Bordo e72bfc468d Add missing dependency to Run a container example (#9153)
The `io` library needs to be imported for the example to compile successfully.
2019-08-16 11:47:56 +01:00
linchiwei123 041a31c3b8 fix COPY failed (#9234)
since README.md listed in https://github.com/docker-library/hello-world/blob/master/.dockerignore , you will get COPY failed without this change.
2019-08-16 11:32:39 +01:00
Alex Goodman 07360ef578 remove depricated methods from go sdk examples (#8689)
* remove depricated methods from go sdk examples

* use negotiate client option; handle import & tty review comment
2019-07-23 08:56:00 -07:00
ollypom c39ba281fd
Synced Docs Public Master with Docs Private Master 2019-07-19 11:02:28 +00:00
Wojtek Wrona d5293c2191 Update dockerfile_best-practices.md (#7336)
LGTM, thanks!
2019-07-12 14:08:46 -07:00
Dawn W Docker bf298eba11 branding changes
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-11 15:05:20 -07:00
Dawn W Docker 7b45982a0a branding changes
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-11 14:48:19 -07:00
Victor Bennich 313b0dc4d7 Update dev-best-practices.md (#8840)
Added a '/' to the Docker for Azure link to fix broken link.
2019-05-25 12:20:33 -07:00
Brodie Kurczynski 5e39c6f664 Updated multi-stage build doc (#8769)
Changed the 'as' keyword to 'AS' to match the Dockerfile reference docs here: https://docs.docker.com/engine/reference/builder/#from
2019-05-07 15:50:09 -07:00
David Ye a2e2846b6c
Fix typo 2019-04-01 23:56:55 -07:00
Michael Pearson cea730af57
Change "Linux" limitation wording
I read the previous wording as "Only works when run from a Linux host", where what it means is "Only works when building a Linux container".

In other words, build enhancements work just fine if building Linux containers via Docker for Mac/Windows.
2019-03-14 11:20:32 +11:00
L-Hudson a1ec36d825
Merge pull request #8428 from thaJeztah/remove_old_docker_reference
remove references to obsolete versions, and rewrite stdin section
2019-03-11 09:01:44 -04:00
Sebastiaan van Stijn c6af9fd588
Fix incorrect example in "dockerfile best practices"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-08 18:06:52 +01:00
Sebastiaan van Stijn 195c6983df
touch-up Markdown formatting and highlighting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-08 17:37:23 +01:00
Sebastiaan van Stijn 8e71348370
remove references to obsolete versions, and rewrite stdin section
This removes references to obsolete versions of Docker, and rewrites
the section on building from a Dockerfile piped through `stdin`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-08 17:04:39 +01:00
David Cho-Lerat 6e0723675a
Typo: "use HTTP API" => "use the HTTP API" 2019-02-15 17:02:20 +01:00
L-Hudson 39aa4756cd
Update build_enhancements.md
editorial crx
2019-01-24 14:48:31 -05:00
Loïc B 8e73cd0212
Update build_enhancements.md with troubleshooting hints
Add troubleshooting tips from https://github.com/moby/moby/issues/38303
2019-01-23 11:42:46 +01:00
paigehargrave 0dab4ade68
Merge branch 'master' into name-change-for-Docker-Desktop 2019-01-14 11:14:48 -05:00
paigehargrave cfe3795956
Update index.md 2019-01-11 15:07:55 -05:00
paigehargrave 5eb125fcfd
Update dev-best-practices.md 2019-01-11 15:06:56 -05:00
paigehargrave dba8ed5197
Update baseimages.md 2019-01-11 14:43:33 -05:00
L-Hudson 20a099200d
Merge pull request #6761 from bruceadowns/patch-2
Update index.md
2019-01-03 08:41:19 -05:00
Maria Bermudez f36c2bad4f
Merge pull request #7710 from alejandrox1/master
Update docker sdk go example
2019-01-02 12:43:04 -08:00
Jorge Alarcon Ochoa 27ad1c0928 Update docker sdk go example
Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com>
2018-12-27 15:59:13 -06:00
L-Hudson 7a39bec77a
Merge pull request #6155 from RobertKielty/patch-1
Call out go version required to get client
2018-12-21 08:44:31 -05:00
Maria Bermudez 48cf507e7c
Syntax error in frontmatter 2018-12-20 16:18:58 -08:00
Maria Bermudez 0aa5ac51f4
Remove smart quotes 2018-12-20 11:19:01 -08:00
Maria Bermudez 04d6c618a3
Merge branch 'master' into issue#7592 2018-12-20 11:13:10 -08:00
Evert Ramos a4e4d3a9fa
Small typo
fix typo in docs
2018-12-17 16:03:45 -02:00
Maria Bermudez 4bdcbf8ae9 Merge branch 'master' of github.com:docker/docker.github.io 2018-12-10 12:41:24 -08:00
L-Hudson 51d2167776
Merge pull request #7731 from docker/ssh-docker-build-usage-826
Document SSH usage for Docker builder
2018-12-10 14:59:28 -05:00
Anne Henmi 07620469f9
Update build_enhancements.md 2018-12-10 08:04:39 -07:00
Anne Henmi 96f63b78a0
Update build_enhancements.md
Included technical edits from @andrewhsu.
2018-12-04 13:20:25 -07:00
Jeffrey Morgan 5cdb36d5a1 Merge branch 'master' of github.com:docker/docker.github.io 2018-12-03 15:14:51 -05:00
morihaya 29428eeced fix COPY file name 2018-12-03 14:29:53 +09:00
L-Hudson 2fb45aab10
Merge pull request #7762 from tdensmore/patch-2
Update build_enhancements.md
2018-11-30 12:43:06 -05:00
Maria Bermudez 24019d9d85
Remove default assertion for dash shell 2018-11-29 15:05:11 -08:00
Maria Bermudez 9114fc2a7b Revert "Merge pull request #7735 from crgaurav/patch-1"
This reverts commit 81ac3e8bdf, reversing
changes made to d79dc1d84f.
2018-11-29 14:58:17 -08:00
todd densmore d448491e9e
Update build_enhancements.md
Updated to the correct docker build command.
2018-11-28 09:22:56 -05:00
Anne Henmi 07855dc667
Update build_enhancements.md 2018-11-27 19:30:28 -07:00
Sebastiaan van Stijn 4e4398d158
Update develop/develop-images/build_enhancements.md
Co-Authored-By: ahh-docker <41210220+ahh-docker@users.noreply.github.com>
2018-11-27 19:18:35 -07:00
Sebastiaan van Stijn dc768f6ec1
Update develop/develop-images/build_enhancements.md
Co-Authored-By: ahh-docker <41210220+ahh-docker@users.noreply.github.com>
2018-11-27 19:18:24 -07:00
Anne Henmi 837beda76b
Update build_enhancements.md
Capitalized headers.
2018-11-27 09:24:09 -07:00
Jeffrey Morgan c0656fa7fa Rename official repos to official images 2018-11-21 15:19:50 -05:00
Gaurav Sharma f7e90e31d4
Update dockerfile_best-practices.md 2018-11-21 22:10:08 +05:30
Gaurav Sharma 862562f9e6
change dash to bash.
in this file, I have seen dash instead of bash.
2018-11-21 22:07:48 +05:30