From Fedora Project Wiki
Description
This is basic TC for the Container Management Role (Docker) for Fedora 21 Server. Go through the TC and you can experiment with it after completing the steps.
Setup
Below is the requirements for this test case.
- VM or physical hardware
- Make sure to have a internet connection to pull images off the web.
- Note: i386 does not support Docker please use x86-64
How to test
Please follow these steps:
- If you want a in-depth guide please visit this guide: Docker Guide
- Boot into system and boot from CD or USB (VM or Physical Hardware)
- Select your language.
- On the next page, in the software selection box, select "Container Management"
- Make sure you go over your configuration before continuing the installation
- Wait until the installer finishes. (Make sure to put in your root username and password.)
- After the installation has finished and has rebooted log into the command prompt with your username & password.
- Once in the terminal please start docker by issuing
sudo docker -d &
- If you have trouble with networking please issue
sudo service network restart
- If you have trouble with networking please issue
- After that,(After logging In), enter
docker
this will list all the commands available for docker - Next enter,
sudo docker search [image name]
. (Image name can be centOS, fedora, ubuntu etc.) - To choose and download a image issue this command
sudo docker pull [username/image name]
- After it has downloaded you can view your image(s) with this
sudo docker images
- To create a new container issue the command
sudo docker run [username/image name] [command]
- In this case issue
echo Hello World
for the [command]
- In this case issue
- Finally to stop a container issue:
sudo docker stop [container ID]
Expected Results
This test case is a good starting point free-form test case (Do as you like), but you should be able to get these results / outcomes below:
- Be able to install / run x86-64 F21 Server.
- Be able to download an image from the docker repository.
- Be able to run and issue a command to a docker image.
- Report your findings and any bugs you may encounter