docker

docker smoke test

What It Tests

  • install-docker: install docker.io from elxr mirror

  • start-docker-service: start the docker daemon

  • run-docker-image: run a docker container

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

HTTPS_PROXY

""

https proxy for docker daemon, format “http://x.x.x.x:xxxx”

Test Steps

cd ./automated/linux/docker/
./docker.sh -i "${IMAGE}" -p "${HTTPS_PROXY}"

Refer to docker.yaml for complete test definition and execution details.

Expected Results

  • docker.io could be installed successfully if not pre-installed

  • docker.service could be started successfully

  • the docker image specified could be executed successfully

References