docker-networking

docker networking test

What It Tests

  • docker-version: validate docker --version

  • docker-network-list: validate docker network ls sub command

  • docker-start-container: validate run a container via docker run

  • docker-network-inspect: validate docker network inspect bridge sub command

  • docker-network-bridge: parse the IP address of Containers from the output of docker network inspect bridege command

  • ping-container-test: validate the contaner is reachable via ping

  • docker-kill-container: validate docker kill command

  • docker-ping-localhost-host-network: validate ping localhost from container with host networking

Preconditions

  • For ostree enabled image, it shall be unlocked via ostree admin unlock --hotfix

Test Parameters

Parameter

Default

Description

IMAGE

"ubuntu"

the docker image to run

SKIP_INSTALL

"False"

skip the install

HTTPS_PROXY

""

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

References