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
Fix the bug of docker import command when import a image with a tag use REPOSITORY:TAG format
Merge branch 'master' of https://github.com/coolljt0725/docker