docker-networking¶
docker networking test
What It Tests¶
docker-version: validate
docker --versiondocker-network-list: validate
docker network lssub commanddocker-start-container: validate run a container via
docker rundocker-network-inspect: validate
docker network inspect bridgesub commanddocker-network-bridge: parse the IP address of Containers from the output of
docker network inspect bridegecommandping-container-test: validate the contaner is reachable via
pingdocker-kill-container: validate
docker killcommanddocker-ping-localhost-host-network: validate ping localhost from container with host networking
Preconditions¶
For
ostree enabledimage, 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