From Fedora Project Wiki
< User:Roshi | QA/AtomicTests
No edit summary |
(update for f28) |
||
Line 7: | Line 7: | ||
# Run a dockerized application | # Run a dockerized application | ||
# Example: | # Example: | ||
docker run -it --rm busybox true && echo "PASS" || echo "FAIL" | docker run -it --rm docker.io/busybox true && echo "PASS" || echo "FAIL" | ||
|results= | |results= | ||
# Output from the example command should resemble: | # Output from the example command should resemble: | ||
Unable to find image 'busybox' locally | <nowiki> | ||
# docker run -it --rm docker.io/busybox true && echo "PASS" | |||
Unable to find image 'docker.io/busybox:latest' locally | |||
Trying to pull repository docker.io/library/busybox ... | |||
sha256:58ac43b2cc92c687a32c8be6278e50a063579655fe3090125dcb2af0ff9e1a64: Pulling from docker.io/library/busybox | |||
f70adabe43c0: Pull complete | |||
Digest: sha256:58ac43b2cc92c687a32c8be6278e50a063579655fe3090125dcb2af0ff9e1a64 | |||
# Ensure that the docker daemon is using the storage set up by container-storage-setup | Status: Downloaded newer image for docker.io/busybox:latest | ||
PASS | |||
</nowiki> | |||
# Ensure that the docker daemon is using the overlay2 storage driver set up by container-storage-setup | |||
<nowiki> | |||
# lsblk | |||
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |||
sr0 11:0 1 366K 0 rom | |||
vda 252:0 0 6G 0 disk | |||
├─vda1 252:1 0 1G 0 part /boot | |||
└─vda2 252:2 0 5G 0 part | |||
└─atomicos-root 253:0 0 5G 0 lvm /sysroot | |||
# docker info | grep Storage | |||
Storage Driver: overlay2 | |||
</nowiki> | |||
}} | }} |
Revision as of 02:28, 11 April 2018
Description
This is a simple testcase to determine whether docker containers run properly on an Atomic Host.
Setup
- Ensure you have a booted working Atomic Host
How to test
- Run a dockerized application
- Example:
docker run -it --rm docker.io/busybox true && echo "PASS"
Expected Results
- Output from the example command should resemble:
# docker run -it --rm docker.io/busybox true && echo "PASS" Unable to find image 'docker.io/busybox:latest' locally Trying to pull repository docker.io/library/busybox ... sha256:58ac43b2cc92c687a32c8be6278e50a063579655fe3090125dcb2af0ff9e1a64: Pulling from docker.io/library/busybox f70adabe43c0: Pull complete Digest: sha256:58ac43b2cc92c687a32c8be6278e50a063579655fe3090125dcb2af0ff9e1a64 Status: Downloaded newer image for docker.io/busybox:latest PASS
- Ensure that the docker daemon is using the overlay2 storage driver set up by container-storage-setup
# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 366K 0 rom vda 252:0 0 6G 0 disk ├─vda1 252:1 0 1G 0 part /boot └─vda2 252:2 0 5G 0 part └─atomicos-root 253:0 0 5G 0 lvm /sysroot # docker info | grep Storage Storage Driver: overlay2