Creating a container

Follow these steps to create an Opscenter container and a connected DataStax Enterprise server container on the same Docker host.

Follow these steps to create an Opscenter container and a connected DataStax Enterprise server container on the same Docker host.

OpsCenter Docker run options

Use the following options when creating an OpsCenter Docker container.

Option Description
-e (**Required**) Set DS_LICENSE=accept to accept the OpsCenter licensing agreement.
-d (Recommended) Starts the container in the background.
-p Publish OpsCenter port on the host computer and allow remote access. For example map, the HTTP port to allow browser access -p 8888:8888.
-v (Optional) Bind mount local host directories to exposed volumes to manage the configuration or persist data. For example, -v /dse/conf/opscenter:/conf.
--name Assigns a name to the container.

These are the most commonly used docker run switches used in deploying OpsCenter. For a full list please see docker run reference.

Procedure

  1. First create an OpsCenter container.
    docker run -e DS_LICENSE=accept \
    -d -p 8888:8888 \
    --name my-opscenter 

    See OpsCenter Docker run options for additional options that persist data or manage configuration.

  2. Create a DataStax Enterprise (DSE) server container that is linked to the OpsCenter container.
    docker run -e DS_LICENSE=accept \
    --link my-opscenter:opscenter \
    --name my-dse \
    -d store/datastax/dse-server:5.1.5 
  3. Get the DSE container IP address:
    docker exec -it my-dse nodetool status 
  4. Open a browser and go to http://DOCKER_HOST_IP:8888.
  5. Click Manage existing cluster.
  6. In host name, enter the DSE IP address.
  7. Click Install agents manually. Note that the agent is already installed on the DSE image; no installation is required.