Reuse exec cli function and strip nsenter- from funcs

Signed-off-by: Michael Crosby <michael@docker.com>