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)
Minor updates and fixes to the CONTRIBUTING doc

* Fixed some uses of docker v. Docker
* Formatting and line wrapping.
* Spelling errors and grammar fixes.

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)

(cherry picked from commit d013b76e10262624c9f8ee05b9877e26eb58b516)

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: SvenDowideit)
Fix 2 docker.com theme regressions on docs.docker.com
- Hover colours of doc nav wrong
- Primary Docs Nav not active when user is Logged in.

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)

(cherry picked from commit 873241790f802351d36c490046435215b33e4551)
docs: add Groovy Docker-Client link

Docker-DCO-1.1-Signed-off-by: Tobias Gesellchen <tobias@gesellix.de> (github: gesellix)
(cherry picked from commit 5c246c931eec7ec31a90fc4ae1577eb54f938427)

Docker-DCO-1.1-Signed-off-by: Tobias Gesellchen <tobias@gesellix.de> (github: SvenDowideit)
doc fix: remove trailing *

The trailing `*` makes it seem like there is some kind of annotation
(cherry picked from commit 6e4b37fffdfc324141aae9f86268db4e8ed7aeb0)

Docker-DCO-1.1-Signed-off-by: Naoki Orii <norii@cs.cmu.edu> (github: SvenDowideit)
Explain ADD invalidation more accurately

And also move it in to the `ADD` section, rather than being hidden in the `RUN` section.

Docker-DCO-1.1-Signed-off-by: Daniel Watkins <daniel@daniel-watkins.co.uk> (github: OddBloke)

(cherry picked from commit 20a77aeeb8855ca0189fe9e3292d92b165b08905)

Docker-DCO-1.1-Signed-off-by: OddBloke <daniel@daniel-watkins.co.uk> (github: SvenDowideit)
Add info to Mount a Host File as a Data Volume

Docker-DCO-1.1-Signed-off-by: Tom Fotherby <github@tomfotherby.com> (github: tomfotherby)
(cherry picked from commit cfbe062eb2ba6f1d24ab3b6f9b965a65931d5b07)

Docker-DCO-1.1-Signed-off-by: Tom Fotherby <tom+github@peopleperhour.com> (github: SvenDowideit)
Update File mount info for docker v1.1.0

Docker-DCO-1.1-Signed-off-by: Tom Fotherby <github@tomfotherby.com> (github: tomfotherby)
(cherry picked from commit 87df57810d39bdd50167338e5ff8d0e6bc6e23e2)

Docker-DCO-1.1-Signed-off-by: Tom Fotherby <tom+github@peopleperhour.com> (github: SvenDowideit)
Fix the parent/child relationship in the docs

In the Docker Linking Docs, the parent child relationship
was backwards. The Web container should be able to access
the DB, not other way around. Furthermore, the output of
'docker ps' was wrong (it showed that the DB could access
the Web). This fixes both typos.

Docker-DCO-1.1-Signed-off-by: Ian Bull <irbull@gmail.com> (github: irbull)

(cherry picked from commit 29a20672c216e2f8aa90af765ac5c47e3350b3d9)

Docker-DCO-1.1-Signed-off-by: Ian Bull <irbull@gmail.com> (github: SvenDowideit)
run.md: Fix references to cli

There are now no other occurrences of `#cli-` in this document.

TODO: Find other places with wrong links.
(cherry picked from commit 95870ef3349920efc981a703d52f5832b79ee18e)

Docker-DCO-1.1-Signed-off-by: Felix Rabe <felix@rabe.io> (github: SvenDowideit)
Reformat to keep line length within 80 characters

Docker-DCO-1.1-Signed-off-by: Tom Fotherby <github@tomfotherby.com> (github: tomfotherby)
(cherry picked from commit ebbfdf0a0f99aac67b8ad5d789d8a400be346c30)

Docker-DCO-1.1-Signed-off-by: Tom Fotherby <tom+github@peopleperhour.com> (github: SvenDowideit)
add jclouds-docker client reference

Docker-DCO-1.1-Signed-off-by: Andrea Turli <andrea.turli@gmail.com> (github: andreaturli)

Docker-DCO-1.1-Signed-off-by: Andrea Turli <andrea.turli@gmail.com> (github: )

(cherry picked from commit 2f13d3a8e541b918135ea0bf0153f56927dd0511)

Docker-DCO-1.1-Signed-off-by: Andrea Turli <andrea.turli@gmail.com> (github: SvenDowideit)
Update running_riak_service.md
(cherry picked from commit 963ee6ce795ae6608ee9acce4bc6298356d7f02f)

Docker-DCO-1.1-Signed-off-by: Chewey <prosto-chewey@users.noreply.github.com> (github: SvenDowideit)
We haven't required lxc and aufs for years now...

Well, maybe not years, but internet years...

Docker-DCO-1.1-Signed-off-by: Timothy Hobbs <timothyhobbs@seznam.cz> (github: timthelion)

(cherry picked from commit ea583fda97617a349ef026dd2d99a0d5e4b0980d)

Docker-DCO-1.1-Signed-off-by: Timothy Hobbs <timothyhobbs@seznam.cz> (github: SvenDowideit)
Update the footer version with Enterprise and Partners sections

Docker-DCO-1.1-Signed-off-by: Roberto Hashioka <roberto.hashioka@docker.com> (github: rogaha)

(cherry picked from commit fd66e7746519ab32bf3f6f336052a4ff763e213b)

Docker-DCO-1.1-Signed-off-by: Roberto Gandolfo Hashioka <roberto_hashioka@hotmail.com> (github: SvenDowideit)
Don't make the user get a container alreayd exists error

Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)

(cherry picked from commit 6a9c6d3bf12982ca31e0b38cd323073b44c98456)