Prettify docs-update.py

Remove commented code, use format for string concatenation, split long lines, fix how-to-run instructions
Signed-off-by: Davide Ceretti <dav.ceretti@gmail.com>
Add ENV variables support to WORKDIR build command

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Docker-DCO-1.1-Signed-off-by: Adrien Folie <folie.adrien@gmail.com> (github: folieadrien)

Conflicts:
	builder/builder.go
		This file has been deleted.
add test and move one from rm to rmi

Signed-off-by: Victor Vieux <vieux@docker.com>
Multiple fixes to the cli.md document.

*. Fixed headings so the side menu will now be consistent. Some sections
had H3s that were displaying and others did not leaving the left menu
very mismatched.

* Fixed several spelling errors.

* Re-formatted several long lines and badly laid out paragraphs.

* Fixed several double backticks.

* Added backticks to several outputs and variables.

* Removed two issues that are no longer valid.

* Removed several double spaces and extra lines.

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
Remove registry v2 code path

As this feature requires more testing it is much safter to get the
underlying changes into the codebase first then enable the feature in
another release after proper testing and verification can be done.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Fix builder/parser so it keeps some whitespace on split lines.
If previous line ends with whitespace, or next line starts with whitepsace
we need to preserve a space otherwise things line:
RUN echo\
   hello
will appear as: RUN echohello

Noticed this while looking at #5744 because he had lines ending in &&\

Signed-off-by: Doug Davis <dug@us.ibm.com>
Make fixed font sizes smaller per Issue #5278

Closes #5278

Signed-off-by: Doug Davis <dug@us.ibm.com>
Fix Host header on stream commands

Fixes #8407

Setting Host on URL only works if the Request does not
already have its Host property set.

Note that the API version was also swallowed.

Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi)
Fix streaming JSON Content-type for postBuild

See #8101

lineDelim is used by streamJSON() so it needs to be set
before its called.

Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi)
Merge pull request #8413 from tonistiigi/build-content-type

Fix streaming JSON Content-type for postBuild
Merge pull request #8408 from tonistiigi/8407-fix-host-header

Fix Host header on stream commands
Fix TestBuildCacheADD to check cache in out, not in id

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Merge pull request #8343 from duglin/Issue5278

Make fixed font sizes smaller per Issue #5278
Merge pull request #8391 from crosbymichael/disable-v2-registry

Remove registry v2 code path
Merge pull request #8370 from duglin/ParserIndent

Fix builder/parser so it keeps some whitespace on split lines.
update test

Signed-off-by: Victor Vieux <vieux@docker.com>
Fix #8398 - volumes copying data unexpectedly

Prior to the volumes re-factor, data was not being copied on
volumes-from or host-mounted volumes.
After the re-factor, data was being copied for volumes-from.
This reverts this unintentional change in behavior.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Merge pull request #8369 from vieux/add_test_rm

add test and move one from rm to rmi
Merge pull request #8417 from cpuguy83/8398_fix_automatic_data_copy_for_volumesfrom

volumes copying data unexpectedly
Merge pull request #8416 from LK4D4/fix_build_cache_test

Fix TestBuildCacheADD to check cache in out, not in id