docker-networking¶
docker networking test
What It Tests¶
docker-version: validate
docker --version
docker-network-list: validate
docker network ls
sub commanddocker-start-container: validate run a container via
docker run
docker-network-inspect: validate
docker network inspect bridge
sub commanddocker-network-bridge: parse the IP address of Containers from the output of
docker network inspect bridege
commandping-container-test: validate the contaner is reachable via
ping
docker-kill-container: validate
docker kill
commanddocker-ping-localhost-host-network: validate ping localhost from container with host networking
Preconditions¶
For
ostree enabled
image, it shall be unlocked viaostree admin unlock --hotfix
Test Parameters¶
Parameter |
Default |
Description |
---|---|---|
|
|
the docker image to run |
|
|
skip the install |
|
|
https proxy for docker daemon, format “http://x.x.x.x:xxxx” |
Test Steps¶
cd ./automated/linux/docker-networking/
./docker-networking.sh -i "${IMAGE}" -s "${SKIP_INSTALL}" -p "${HTTPS_PROXY}"
Refer to docker.yaml
for complete test definition and execution details.
Expected Results¶
All the docker commands are executed successfully