From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This is a simple testcase to determine whether docker containers run properly on an Atomic Host. {{Admon/note|Prerequisite|This testcase assumes yo...")
 
Line 17: Line 17:
 
  e433a6c5b276: Download complete  
 
  e433a6c5b276: Download complete  
 
  PASS
 
  PASS
# Ensure that the docker daemon is using the storage set up by docker-storage-setup
+
# Ensure that the docker daemon is using the storage set up by container-storage-setup
  # lsblk
+
  $ lsblk  
  NAME                             MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
+
  NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  vda                               252:0    0   20G  0 disk  
+
  vda                           252:0    0   20G  0 disk  
  ├─vda1                            252:1    0 200M 0 part /boot
+
  └─vda1                        252:1    0   20G 0 part  
  └─vda2                            252:2    0 19.8G 0 part
+
  vdb                          252:16  0     6G 0 disk
  ├─atomicos-root                253:0   0    4G 0 lvm  /sysroot
+
├─vdb1                        252:17  0   300M 0 part /boot
  ├─atomicos-docker--meta        253:1    0  24M 0 lvm 
+
  └─vdb2                        252:18   0  5.7G 0 part
  │ └─docker-253:0-6298462-pool   253:3    10G 0 dm 
+
   ├─atomicos-root            253:0    0     4G 0 lvm  /sysroot
   │  └─docker-253:0-6298462-base 253:4   0   10G 0 dm 
+
   └─atomicos-docker--root--lv 253:1   0  1.1G 0 lvm  /sysroot/ostree/deploy/fedora-atomic/var/lib/docker
   └─atomicos-docker--data        253:2   0  10G 0 lvm   
 
    └─docker-253:0-6298462-pool  253:3    0  10G  0 dm 
 
      └─docker-253:0-6298462-base 253:4    0  10G  0 dm
 
 
}}
 
}}

Revision as of 15:19, 20 June 2017

Description

This is a simple testcase to determine whether docker containers run properly on an Atomic Host.

Note.png
Prerequisite
This testcase assumes you have already ran the boot test.

Setup

  1. Ensure you have a booted working Atomic Host

How to test

  1. Run a dockerized application
  2. Example:
docker run -it --rm busybox true && echo "PASS"

Expected Results

  1. Output from the example command should resemble:
Unable to find image 'busybox' locally
Pulling repository busybox
e72ac664f4f0: Download complete 
511136ea3c5a: Download complete 
df7546f9f060: Download complete 
e433a6c5b276: Download complete 
PASS
  1. Ensure that the docker daemon is using the storage set up by container-storage-setup
$ lsblk 
NAME                          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
vda                           252:0    0    20G  0 disk 
└─vda1                        252:1    0    20G  0 part 
vdb                           252:16   0     6G  0 disk 
├─vdb1                        252:17   0   300M  0 part /boot
└─vdb2                        252:18   0   5.7G  0 part 
  ├─atomicos-root             253:0    0     4G  0 lvm  /sysroot
  └─atomicos-docker--root--lv 253:1    0   1.1G  0 lvm  /sysroot/ostree/deploy/fedora-atomic/var/lib/docker