subtests.docker_cli: Add run_attach test

This test checks different ``docker run -a xxx`` variants.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.build: Turn build test into subsubtest

No actual changes, only couple fixed pep8 complains and the test is
rewritten to build/local_path subsubtest.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.build: Add two new subtests

These subtests use https and git repository as source path for
docker build.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge branch 'build' of https://github.com/ldoktor/autotest-docker into ldoktor-build
subtests...build: Config. example build URIs

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'ldoktor-build'
Merge pull request #282 from ldoktor/run_attach

subtests.docker_cli: Add run_attach test
dockertest.containers: ValueError on invalid names

In case we need to introduce variations in container
name parsing, moved code into separate method.  Added
some simple checks that raise ValueError on obviously
badly formatted names.  Note however that the class
*does* still permit a "None" name, so this case is
allowed through.  Added unittests to cover positive
and negative name values.

Signed-off-by: Chris Evich <cevich@redhat.com>