Set state running before dumping to disk

Fixes #4766
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)

Conflicts:
	daemon/container.go

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: vieux)
Add a conditional to contrib/init/sysvinit-debian/docker for Dash vs Bash support

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)

Docker-DCO-1.1-Signed-off-by: Tianon Gravi <admwiggin@gmail.com> (github: vieux)
Always mark as stopped for non running containers
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: vieux)
Copy values out of hostConfig
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: vieux)
Bump version to v1.1.2

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Merge pull request #7172 from vieux/bump_v1.1.2

Bump v1.1.2
fix check-config.sh to check for CGROUP_PERF

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Merge remote-tracking branch 'origin/master' into bump_v1.2.0

Conflicts:
	VERSION
	daemon/container.go
	daemon/daemon.go

Signed-off-by: Victor Vieux <vieux@docker.com>
Bump version to v1.2.0

Signed-off-by: Victor Vieux <vieux@docker.com>
Fix data space reporting from Kb/Mb to KB/MB

Docker-DCO-1.1-Signed-off-by: Vivek Dasgupta <vdasgupt@redhat.com> (github: vivekdasgupta)
Merge pull request #7644 from vieux/bump_v1.2.0

Bump v1.2.0
Merge remote-tracking branch 'origin/release'
Change version to 1.2.0-dev
Merge pull request #7668 from docker/merge_release_v1.2.0

Merge release v1.2.0
Merge pull request #7638 from vivekdasgupta/minor-fixes

Fix data space reporting from Kb/Mb to KB/MB
Merge pull request #7632 from erikh/fix_check_config

fix check-config.sh to check for CGROUP_PERF
Update usingdocker.md

Minor rewording and removal of unnecessary apostrophe.
Merge pull request #7684 from averagehuman/patch-1

Update usingdocker.md
*: transition usage of libcontainer/user to new interface

This patch transitions the use of the old libcontainer/user interface to
the new and improved libcontainer/user interface.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)