To verify that docker run command is supported by VIC appliance
1 - Docker Command Line Reference
This test requires that a vSphere server is running and available
- Deploy VIC appliance to vSphere server
- Issue docker run busybox dmesg to the VIC appliance
- Issue docker run busybox -i dmesg to the VIC appliance
- Issue docker run -it busybox /bin/top to the VIC appliance
- Issue 'q' command to the container
- Issue docker run busybox /bin/top to the VIC appliance
- Issue docker run busybox fakeCommand to the VIC appliance
- Issue docker run fakeImage /bin/bash to the VIC appliance
- Issue docker run -d --name busy3 busybox /bin/top to the VIC appliance
- Issue docker run --link busy3:busy3 busybox ping -c2 busy3 to the VIC appliance
- Issue docker run -it busybox /bin/df to the VIC appliance
- Issue docker run -d -p 6379 redis:alpine to the VIC appliance
- Issue docker run -it busybox /bin/true
- Issue docker run -it busybox /bin/false
- Issue docker run -it busybox /bin/fakeCommand
- Issue docker run busybox date
- Create container1 with id1 and then create container2 with name = id1
- Run a short lived container with autoremove specified
- Check the number of containers with docker ps -a
- Run a short-lived auto-remove mongo container with a named volume (mapped to an image volume path) and an anonymous volume
- Check the number of containers with docker ps -a
- Run docker volume ls
- Issue docker run -d -v vol:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=pw --name test-mysql mysql to the VIC appliance
- Issue docker ps to the VIC appliance to verify that test-mysql is running and clean up afterward
- Issue docker run -d -e MYSQL_ROOT_PASSWORD=pw --name test-mariadb mariadb to the VIC appliance
- Issue docker ps to the VIC appliance to verify that test-mariadb is running and clean up afterward
- Issue docker run -d --name test-postgres postgres to the VIC appliance
- Issue docker ps to the VIC appliance to verify that test-postgres is running and clean up afterward
- Issue docker run -d --rm --name ${idx} ubuntu /bin/sh -c'a=0; while [ $a -lt 75 ]; do echo "line $a"; a=expr $a + 1; sleep 2; done;' 16 times concurrently in order to test docker run --rm concurrency
- Step 2 and 3 should result in success and print the dmesg of the container
- Step 4 should result in the top command starting and printing it's results to the screen
- Step 5 should result in top stopping and the container exiting
- Step 6 should result in the top command starting and printing it's results to the screen, as it is not interactive you will need to issue ctrl-c to stop the container with a KILL signal
- Step 7 should result in an error and the following message:
exec: "fakeCommand": executable file not found in $PATH
docker: Error response from daemon: Container command not found or does not exist..
- Step 8 should result in an error and the following message:
docker: Error parsing reference: "fakeImage" is not a valid repository/tag.
- Step 10 should result in success and the output should indicate that the ping succeeded across containers just using the linked name
- Step 11 should result in success with exit code 0 and show the output of the df command
- Step 12 should result in success with exit code 0
- Step 13 should result in success with exit code 0
- Step 14 should result in success with exit code 1
- Step 15 should result in success with exit code 127
- Step 16 should result in success and the output should contain the current date
- Step 17 should result in no conflicts
- Step 18 should result in the same container count at beginning and end
- Steps 19 and 20 should succeed
- Step 21's output should contain the same number of containers as Step 19's output
- Step 22's output should contain the named volume used in Step 20
- Step 23-28 should result in success with exit code 0
- Step 29 should result in all containers being removed as expected on exit
None