fix the order of setns()

Docker-DCO-1.1-Signed-off-by: Takahiro Maebashi <maebashi@iij.ad.jp> (github: maebashi)
Add a couple tweaks to the Dockerfile

- we don't need to add a "daemon" user to busybox; it already has one :)
- if we split out the "go get" from the "go install", we can have nice clean output on "docker build" of which dependencies we're pulling in and all the packages that get built :)

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

Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
Fix veth network stats. Tx on the host vETH is ingress traffic and not egress.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Merge pull request #126 from dhammika/125-null-term-ifr_name

Null-term ioctl ifr_name strings #125
Merge pull request #121 from vishh/fix_network_stats

Fix veth network stats.
Merge pull request #123 from tianon/dockerfile-tweaks

Add a couple tweaks to the Dockerfile
Update imports for new docker location
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
Correct nsenter fprintf syntax
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
Merge pull request #127 from crosbymichael/update-docker-imports

Update imports for new docker location
Merge pull request #128 from crosbymichael/fix-nsenter

Correct nsenter fprintf syntax
namespaces: nsenter: ignore nonexistent namespaces

If a particular kernel doesn't have namespace directories that
libcontainer tries to attain during nsenter(), ignore the error (this is
consistent with the previous implementation of nsenter()).

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)
remove unnecessary headers

Docker-DCO-1.1-Signed-off-by: Takahiro Maebashi <maebashi@iij.ad.jp> (github: maebashi)
Add label.InitLabels functioni. Allows generation of labels based on options

This will allow us to do the following with docker.

Customize the way that a labeling system like SELinux will run on a container.

    --label-opt="user:USER"  : Set the label user for the container
    --label-opt="role:ROLE"  : Set the label role for the container
    --label-opt="type:TYPE"  : Set the label type for the container
    --label-opt="level:LEVEL"  : Set the label level for the container
    --label-opt="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 Deprecated.

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Merge pull request #105 from rhatdan/master

Add label.InitLabels functioni. Allows generation of labels based on options
Libcontainer fs.GetStats() will not look for cgroups relative to the cgroup of init process if the parent
in cgroups.Cgroup is absolute. This is required to get stats of other containers while running inside a docker container.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Implement system.GetClockTicks for all platforms

Docker-DCO-1.1-Signed-off-by: Bernerd Schaefer <bj.schaefer@gmail.com> (github: bernerdschaefer)
Merge pull request #130 from vishh/fix_cgroup_path

Make fs.GetStats() work when used from inside a docker container.
Merge pull request #133 from soundcloud/non-linux-clock-ticks

Implement system.GetClockTicks for all platforms
Merge pull request #58 from maebashi/fix-setns-order

fix the order of setns()