To verify that the docker rename 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 rename foo bar
- Issue docker pull busybox
- Issue docker create --name cont1-name1 busybox
- Issue docker rename cont1-name1 cont1-name2
- Verify that the container was renamed by checking ps, inspect and govc vm.info
- Issue docker run -dit --name cont2-name1 busybox
- Issue docker rename cont2-name1 cont2-name2
- Verify that the container was renamed by checking ps, inspect and govc vm.info
- Issue docker run -dit --name cont3-name1 busybox
- Issue docker stop cont3-name1
- Issue docker rename cont3-name1 cont3-name2
- Issue docker start cont3-name2
- Verify that the container was renamed by checking ps, inspect and govc vm.info
- Issue docker create --name cont4 busybox
- Issue docker rename cont4 ""
- Issue docker create --name cont5 busybox
- Issue docker create --name cont6 busybox
- Issue docker rename cont5 cont5
- Issue docker rename cont5 cont6
- Issue docker create --name cont7-name1 busybox
- Issue docker rename cont7-name1 cont7-name2
- Issue docker start cont7-name1
- Issue docker run --link cont7-name2:cont7alias busybox ping -c2 cont7alias
- Issue docker run busybox ping -c2 cont7-name2
- Issue docker run -dit --name cont8-name1 busybox
- Issue docker rename cont8-name1 cont8-name2
- Issue docker stop cont8-name2
- Issue docker start cont7-name2
- Issue docker run --link cont8-name2:cont8alias busybox ping -c2 cont8alias
- Issue docker run busybox ping -c2 cont8-name2
- Issue docker run -dit --name cont9-name1 busybox
- Issue docker rename cont9-name1 cont9-name2
- Issue docker run --link cont9-name2:cont9alias busybox ping -c2 cont9alias
- Issue docker run busybox ping -c2 cont9-name2
- Step 2 should result in an error with the following message:
Error: No such container: foo
- Steps 3-15 should return without errors
- Step 16 should result in an error containing the following message:
Neither old nor new names may be empty
- Steps 17 and 18 should return without errors
- Step 19 and 20 should return with errors
- Steps 21-23 should return without errors
- Steps 24 and 25 should succeed and their output should contain:
2 packets transmitted, 2 packets received
- Steps 25-29 should return without errors
- Steps 30 and 31 should succeed and their output should contain:
2 packets transmitted, 2 packets received
- Steps 32 and 33 should return without errors
- Steps 34 and 35 should succeed and their output should contain:
2 packets transmitted, 2 packets received
None