From Fedora Project Wiki
(Updating the steps) |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=We are going to test that Docker daemon starts successfully. | |description=We are going to test that Docker daemon starts successfully. | ||
|setup=Test this on Atomic image. | |setup=Test this on Atomic image and Base image. | ||
|actions= | |actions= | ||
Be as specific as required for the target audience. | Be as specific as required for the target audience. | ||
Line 9: | Line 9: | ||
$ sudo dnf install docker -y | $ sudo dnf install docker -y | ||
3. Next we will start docker deamon. (No need on an Atomic instance) | |||
$ systemctl start docker.service | $ systemctl start docker.service | ||
4. Check the status of the docker service | |||
$ systemctl status docker.service | $ systemctl status docker.service | ||
|results= | |results= | ||
The following must be true to consider this a successful test run | The following must be true to consider this a successful test run. | ||
# Step #1 You will be able to login into | # Step #1 You will be able to login into an instance. | ||
# Step #2 | # Step #2 will install docker. | ||
# Step #3 will start docker. | |||
# Step #4 will return like this: | |||
<pre> | |||
$ systemctl status docker.service | $ systemctl status docker.service | ||
● docker.service - Docker Application Container Engine | ● docker.service - Docker Application Container Engine | ||
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) | Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) | ||
Active: active (running) since | Active: active (running) since Mon 2016-04-18 11:18:40 CDT; 3 days ago | ||
Docs: http://docs.docker.com | Docs: http://docs.docker.com | ||
Main PID: | Main PID: 1404 (sh) | ||
CGroup: /system.slice/docker.service | CGroup: /system.slice/docker.service | ||
├─1404 /bin/sh -c /usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $INSECURE_REGISTRY 2>&1 | /usr/bin/forward-journald -tag docker | |||
├─1414 /usr/bin/docker daemon --selinux-enabled --log-driver=journald -G dockerroot --storage-opt dm.no_warn_on_loop_devices=true | |||
└─1415 /usr/bin/forward-journald -tag docker | |||
</pre> | |||
}} | }} |
Latest revision as of 10:43, 5 May 2016
Description
We are going to test that Docker daemon starts successfully.
Setup
Test this on Atomic image and Base image.
How to test
Be as specific as required for the target audience.
- ssh into an Atomic/Cloud instance.
- If it is a cloud base image then install docker
$ sudo dnf install docker -y
3. Next we will start docker deamon. (No need on an Atomic instance)
$ systemctl start docker.service
4. Check the status of the docker service
$ systemctl status docker.service
Expected Results
The following must be true to consider this a successful test run.
- Step #1 You will be able to login into an instance.
- Step #2 will install docker.
- Step #3 will start docker.
- Step #4 will return like this:
$ systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2016-04-18 11:18:40 CDT; 3 days ago Docs: http://docs.docker.com Main PID: 1404 (sh) CGroup: /system.slice/docker.service ├─1404 /bin/sh -c /usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $INSECURE_REGISTRY 2>&1 | /usr/bin/forward-journald -tag docker ├─1414 /usr/bin/docker daemon --selinux-enabled --log-driver=journald -G dockerroot --storage-opt dm.no_warn_on_loop_devices=true └─1415 /usr/bin/forward-journald -tag docker