Docker CI/CD

Container smoke test

A small assertion against an application in its intended image. Check exit status and output; a passing smoke test is narrower than a full integration suite. Run only on an approved disposable runner. For actual authorized testing verify the successful build identity; use an explicit no-pull test. The original staged workflow is an online illustration.

Formal Syntax & Structure

docker syntaxdocker
docker run --rm IMAGE; verify expected result

Working Example

Example Snippetdocker
test "$(docker run --rm --network none bytemind-ci:demo)" = bytemind-ok
Docker Reference