Fix potential race in volume creation

Docker-DCO-1.1-Signed-off-by: Brian Goff <cpuguy83@gmail.com> (github: cpuguy83)
Document Volumes and Binds

Signed-off-by: Jean-Paul Calderone <jean-paul@clusterhq.com>
Source the bash_completion after installation

Signed-off-by: Przemek Hejman <przemyslaw.hejman@gmail.com>
Add --security-opts options to allow user to customize security configuration

security-opts will allow you to customise the security subsystem.

For example the labeling system like SELinux will run on a container.

    --security-opt="label:user:USER"   : Set the label user for the container
    --security-opt="label:role:ROLE"   : Set the label role for the container
    --security-opt="label:type:TYPE"   : Set the label type for the container
    --security-opt="label:level:LEVEL" : Set the label level for the container
    --security-opt="label:disabled"    : Turn off label confinement for the container

Since we are passing a list of string options instead of a space separated
string of options, I will change function calls to use InitLabels instead of
GenLabels.  Genlabels interface is Depracated.

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

Signed-off-by: Victor Vieux <vieux@docker.com>
Filter containers by status.

A continuation of #7616.
Adds `docker ps --filter=status=(restarting|running|paused|stopped)` option.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
Move Go() promise-like func from utils to pkg/promise

This is the first of two steps to break the archive package's dependence
on utils so that archive may be moved into pkg.  Also, the `Go()`
function is small, concise, and not specific to the docker internals, so
it is a good candidate for pkg.

Signed-off-by: Rafe Colton <rafael.colton@gmail.com>
Move Matches() file path matching function into pkg/fileutils

This is the second of two steps to break the archive package's
dependence on utils so that archive may be moved into pkg. `Matches()`
is also a good candidate pkg in that it is small, concise, and not
specific to docker internals

Signed-off-by: Rafe Colton <rafael.colton@gmail.com>
Move archive package into pkg/archive

Now that the archive package does not depend on any docker-specific
packages, only those in pkg and vendor, it can be safely moved into pkg.

Signed-off-by: Rafe Colton <rafael.colton@gmail.com>
Fix typo:betweem->between and PtySlace->PtySlave

Signed-off-by: Arika Chen <eaglesora@gmail.com>
Merge pull request #8309 from ArikaChen/master

Fix typo:betweem->between and PtySlace->PtySlave
Merge pull request #8263 from jfrazelle/filter-status-name

Filter containers by status.
Add missing "tag" parameter to tag API

Closes #4877

Signed-off-by: Doug Davis <dug@us.ibm.com>
update docs

Signed-off-by: Victor Vieux <vieux@docker.com>
Adding exec remote API documentation along with minor code cleanup.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Merge pull request #8092 from vishh/exec_api_docs

Exec remote API documentation
update tests

Signed-off-by: Victor Vieux <vieux@docker.com>
Merge pull request #8286 from ClusterHQ/8285-volume-api-docs

Document Volumes and Binds
Merge pull request #8291 from mieciu/master

Source the bash_completion after installation
Edits and fixes to Dockerfile Best Practices based on review feedback.

Docker-DCO-1.1-Signed-off-by: Fred Lifton <fred.lifton@docker.com> (github: fredlf)