Verify the Deployment of a VCH
After you have deployed a virtual container host (VCH), you can verify the deployment by connecting a Docker client to the VCH and running Docker operations. You can check the results in the vSphere Client or vSphere Web Client.
IMPORTANT: Do not perform operations on virtual container hosts (VCHs) or container VMs in the vSphere Client inventory views. Specifically, using the vSphere Client inventory views to power off, power on, or delete the VCH resource pool or VCH endpoint VM can cause vSphere Integrated Containers Engine to not function correctly. Always use the vSphere Integrated Containers plug-in for the HTML5 vSphere Client or vic-machine
to perform operations on VCHs. The vSphere Client does not allow you to delete container VMs, but do not use the vSphere Client to power container VMs on or off. Always use Docker commands or vSphere Integrated Containers Management Portal to perform operations on containers.
Prerequisites
- You followed the instructions in Deploy a VCH to an ESXi Host with No vCenter Server or Deploy a VCH to a Basic vCenter Server Cluster, specifying the
--no-tlsverify
option. - You have installed a Docker client.
- If you deployed the VCH to vCenter Server, connect a vSphere Client to that vCenter Server instance.
- If you deployed the VCH to an ESXi host, log in to the UI for that host.
Procedure
View the VCH in the vSphere Client.
- vCenter Server: Go to Hosts and Clusters and select the cluster or host on which you deployed the VCH. You should see a resource pool with the name that you set for the VCH.
ESXi host: Go to Virtual Machines. You should see a resource pool with the name that you set for the VCH.
The resource pool contains the VCH endpoint VM.
In a Docker client, run the
docker info
command to confirm that you can connect to the VCH.docker -H vch_address:2376 --tls info
You should see confirmation that the Storage Driver is
vSphere Integrated Containers Backend Engine
.Pull a Docker container image into the VCH, for example, the
BusyBox
container.docker -H vch_address:2376 --tls pull busybox
View the container image files in the vSphere Client.
- vCenter Server: Go to Storage, right-click the datastore that you designated as the image store, and select Browse Files.
ESXi host: Go to Storage and click Browse Datastore.
vSphere Integrated Containers Engine creates a folder that has the same name as the VCH, that contains a folder named
VIC
in which to store container image files.
Expand the
VIC
folder to navigate to theimages
folder. Theimages
folder contains a folder for every container image that you pull into the VCH. The folders contain the container image files.In your Docker client, run the Docker container that you pulled into the VCH.
docker -H vch_address:2376 --tls run --name test busybox
View the container VMs in the vSphere Client.
- vCenter Server: Go to Hosts and Clusters and expand the VCH resource pool.
ESXi host: Go to Inventory and expand the VCH resource pool.
You should see a VM for every container that you run, including a VM named
test-container_id
.
View the container VM files in the vSphere Client.
- vCenter Server: Go to Storage and select the datastore that you designated as the image store.
ESXi host: Click the Summary tab for the ESXi host, right-click the datastore that you designated as the image store, and select Browse Datastore.
At the top-level of the datastore, you should see a folder for every container that you run. The folders contain the container VM files.
What to Do Next
If you deployed the HTML5 plug-in for the vSphere Client, you can see information about VCHs and containers in the Virtual Container Hosts view of the plug-in. For information about how to access the plug-in, see View All VCH and Container Information in the HTML5 vSphere Client.