Try to avoid issues when the Docker daemon restarts.

This change will allow the Docker daemon's init script to wait up to 5
minutes before being forcibly terminated by the initscript. Many
non-trivial containers will take more than the default 3 seconds to
stop, which can result in containers whose rootfs is still mounted and
will not restart when the daemon starts up again, or worse, orphan
processes that are still running.

Signed-off-by: Steven Merrill <steven.merrill@gmail.com>
Fix container wait error message to match server template for returning 404
Addresses #8107

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
Doc update to clarify random port mapping on docker run -P

Signed-off-by: Dan Cotora <d@bluevision.ro>
Change content-type for json stream to application/x-json-stream.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
integcli: consolidate cmd exit code processing

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
integcli: add util to fetch container status

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
integcli: add & use dockerCmdWithTimeout & InDir

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Allow user to change email/passwd via login

Signed-off-by: Doug Davis <dug@us.ibm.com>
devmapper: `docker info` devices hard coded

If `--storage-opt dm.datadev=/dev/loop0 --storage-opt
dm.metadatadev=/dev/loop1 ` were provided, the information was not
reflected in the information output.

Closes: #7137

Signed-off-by: Vincent Batts <vbatts@redhat.com>
devmapper: resizepool hardcodes files as well

Signed-off-by: Vincent Batts <vbatts@redhat.com>
Merge pull request #8123 from dcro/docs-clarifications

Updated the documentation to to clarify random port mapping when using -...
Merge pull request #7564 from unclejack/integcli-add_utils

integration cli: add some utility functions and use them
Misc. fixes and formatting clean-up

Cleaned up and corrected some invalid "example responses".
Added some missing double-quotes for examples that resulted in invalid JSON.
Other general cleanup of stray characters and typos.

Docker-DCO-1.1-Signed-off-by: Ted M. Young <tedyoung@gmail.com> (github: SvenDowideit)
Apply @tedyoung's changes to the entire set of API docs.

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
Merge pull request #8156 from SvenDowideit/tedyoung-patch-1

 Misc. fixes and formatting clean-up
Merge pull request #8094 from smerrill/feature/avoid-docker-start-woes

Try to avoid issues when the Docker daemon restarts or stops on RHEL/CentOS 6
if the Rename during an image delete fails, just delete the original dir

Signed-off-by: Doug Davis <dug@us.ibm.com>
builder: Appropriately initialize the Cmd in runconfig.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
builder: integration-cli test for the previous commit.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Rewrite TestBuildSixtySteps to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>