To verify that docker inspect 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 pull busybox to the VIC appliance
- Issue docker inspect busybox to the VIC appliance
- Issue docker inspect --type=image busybox to the VIC appliance
- Issue docker inspect --type=container busybox to the VIC appliance
- Issue docker create busybox to the VIC appliance
- Issue docker inspect to the VIC appliance
- Issue docker inspect --type=container to the VIC appliance
- Issue docker inspect to the VIC appliance and verify the Cmd and Image fields
- Issue docker inspect --type=image to the VIC appliance
- Issue docker network create net-one
- Issue docker network create net-two
- Issue docker create --network net-one --name two-net-test busybox
- Issue docker network connect net-two two-net-test
- Issue docker start two-net-test
- Issue docker inspect -f '{{range $key, $value := .NetworkSettings.Networks}}{{$key}}{{end}}' two-net-test
- Issue docker inspect fake to the VIC appliance
- Issue docker create -v /var/lib/test busybox
- Issue docker inspect -f {{.Config.Volumes}}
- Issue docker inspect test-with-volume | jq '.[]|.["Config"]|.["Volumes"]|keys[0]' and docker volume ls
- Issue docker inspect busybox -f '{{.RepoDigest}}'
- Issue docker inspect on container with both an anonymous and named volume bound to mount points
- Issue docker inspect container status across container lifecycle (created, running, exited)
- Step 3,4,7,8 should result in success and a properly formatted JSON response
- Step 5 should result in an error with the following message:
Error: No such container: busybox
- Step 9 should result in success with the correct values in the Cmd and Image fields
- Step 10 should result in an error with the following message:
Error: No such image: <containerID>
- Step 16 should result in two networks listed in the inspect data
- Step 17 should result in an error with the following message:
Error: No such image or container: fake
- Step 19 should result in the map returned containing /var/lib/test
- Step 20 should find matching volume ID matching in docker inspect in volume ls
- Step 21 should result in a valid digest, previously cached
- Step 22 should result in valid Mounts data
- Step 23 should result in correct container status values (created, running, exited)
None