Install nsenter from source
nsenter is a great command line tool for accessing docker containers. Unfortunately it isn’t available in Ubuntu 14.04 at the time of writing. Fortunately building it from source is quite simple.
Get the latest version of util-linux from kernel.org https://www.kernel.org/pub/linux/utils/util-linux/
At the time of writing the latest version was v2.25, which is the version used in the examples here.
Install the build dependencies
Download the util-linux package source code (this contains nsenter)
Now we’ll compile the nsenter program
Confirm that nsenter in installed
should return: nsenter from util-linux 2.25