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>
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)
Persistent directory for container in execdriver

This is needed for persistent namespaces

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Test on execdriver dir behavior

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
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 #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>
Rewrite TestAddSingleFileToRoot to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Rewrite TestAddSingleFileToWorkdir to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Rewrite TestAddSingleFileToExistDir to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Rewrite TestAddSingleFileToNonExistDir to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Rewrite TestBuildAddDirContentToRoot to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Rewrite TestBuildAddDirContentToExistDir to not use fixtures

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Merge pull request #8172 from vbatts/vbatts-devmapper_fix_devicset_status_devices

devmapper: `docker info` devices hard coded