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>
Check whether net.ParseIP returned nil or not

This is fix of #8102

Signed-off-by: Oh Jinkyun <tintypemolly@gmail.com>
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)
daemon/attach: avoid mem alloc for interface

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Merge pull request #8169 from unclejack/avoid_attach_alloc

daemon/attach: avoid mem alloc for interface
Merge pull request #8125 from somaopensource/8102-fix

Check whether net.ParseIP returned nil or not
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>
Rewrite TestBuildSixtySteps to not use fixtures

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