Docker should use /var/lib/container/tmp for large temporary files.

/tmp is often a tmpfs file system and large temporary files could cause
docker commands to fail.  Also using /tmp potentially allows users on the
system to get access to content, or even attack the content.  Moving the tmpdir to
/var/lib/container/tmp will protect the data.

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)

Conflicts:
	docker/docker.go
style, grammar, spelling fixes.

Signed-off-by: Marc Tamsky <mtamsky@gmail.com> (github: tamsky)
Update libcontainer to 5589d4d879f1d7e31967a927d3e

Signed-off-by: Michael Crosby <michael@docker.com>
add warning re: changing value of `dm.basesize`.

Signed-off-by: Marc Tamsky <mtamsky@gmail.com> (github: tamsky)
Move "image_export" to graph/export.go

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "image_history" to graph/history.go

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "images" to graph/list.go

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "viz" to graph/viz.go

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "load" to graph/load.go

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "import" to graph/import.go

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "image_delete" to daemon/image_delete.go

Note: this cannot yet be moved to graph/ because of a lingering
dependency on daemon. This has been noted in a FIXME.

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move "image_tag" and "tag" to graph/tag.go

Note: these 2 jobs should be merged into one. This was noted in a FIXME.

Signed-off-by: Solomon Hykes <solomon@docker.com>
Move some integration tests to integration-cli

Signed-off-by: Tibor Vass <teabee89@gmail.com>
Check error returned by eng.Register() in TagStore.Install()

Signed-off-by: Tibor Vass <teabee89@gmail.com>
Separate events subsystem

* Events subsystem merged from `server/events.go` and
  `utils/jsonmessagepublisher.go` and moved to `events/events.go`
* Only public interface for this subsystem is engine jobs
* There is two new engine jobs - `log_event` and `subscribers_count`
* There is auxiliary function `container.LogEvent` for logging events for
  containers

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
[solomon@docker.com: resolve merge conflicts]
Signed-off-by: Solomon Hykes <solomon@docker.com>
Rename "log_event" to "log"

Signed-off-by: Solomon Hykes <solomon@docker.com>
Merge pull request #6456 from rhatdan/tmpdir

Docker should use /var/lib/docker/tmp for large temporary files.
Fix TestBuildForbiddenContextPath after TMPDIR change

Signed-off-by: Tibor Vass <teabee89@gmail.com>
Update hack/vendor.sh to use libcontainer's update-vendor.sh script as the source of truth for libcontainer deps and not include them in Docker's repo twice

Signed-off-by: Andrew Page <admwiggin@gmail.com>
Update vendor with the updated canonical deps from libcontainer

Signed-off-by: Andrew Page <admwiggin@gmail.com>