Creating a container host in Skytap

If Docker is already installed on a VM, you can see and manage any containers installed on the VM after you configure the VM as a Skytap container host.

To commission a VM as a container host, you must install Docker engine and the Skytap VM Agent, and then check the Container Host box in the Containers settings for the VM.

For more information about Skytap container host VMs, see About the Skytap container host.

Containers are supported only on Docker-capable Linux VMs.

Contents

Installing Docker and the VM Agent on a VM

To install Docker on a VM
  1. Make sure that the OS of the VM is an x86 The most common type of CPU for Windows and Linux VMs in Skytap Cloud. Linux distribution that supports Docker. For a list of supported Linux distributions, see https://docs.docker.com/engine/installation/#supported-platforms.
  2. Install Docker engine v1.9 or newer. For Docker engine installation instructions, see https://docs.docker.com/engine/installation/.

    For CentOS, RHEL, or Fedora container hosts, you may also have to enable IP forwarding. See Enable IP address forwarding for a container host.


To install the VM Agent
  • In a terminal window in the VM guest OS, type the following command:

      docker run --name=skytap_agent -d --restart=always -v /var/run/docker.sock:/var/run/docker.sock -it skytap/agent
    

    If the VM Agent does not install correctly, see Troubleshooting the VM Agent.

Enabling a Skytap VM as a container host

To enable a VM as a container host
  1. From the Environment details page, click edit vm settings (Edit VM Settings) for the container host VM. The VM Settings page displays. container host settings
  2. On the VM Settings page, click the Containers tab.
  3. Click Container Host, and then click Save. containers

Verify that the VM Agent is responding

To verify that the VM Agent is responding.

From the VM Settings page:

  1. Click the VM Agent tab.
  2. Verify that the Agent status is Responding. responding

Removing the VM Agent

In some instances it may be necessary to remove the VM Agent from a VM.

To uninstall the VM Agent from this VM

Run the following commands from a terminal window in the VM:

  1. Type the following command to stop the VM Agent:

     docker stop skytap_agent
    
  2. Type the following command to remove the VM Agent container:

     docker rm skytap_agent
    
  3. Type the following command to remove the VM Agent image:

     docker rmi skytap/agent