Start the Container

  1. Initialize the cluster using docker run.

    Note: If you want to preserve data across an upgrade of the Docker container, add a -v singlestore-ciab-data:/var/lib/memsql before singlestore/cluster-in-a-box in the command below.

    Linux/macOS

    docker run -i --init \
        --name singlestore-ciab \
        -e LICENSE_KEY=<YOUR_LICENSE_KEY_FROM_PORTAL.SINGLESTORE.COM> \
        -e ROOT_PASSWORD=<YOUR_DESIRED_DATABASE_ROOT_PASSWORD> \
        -p 3306:3306 -p 8080:8080 \
        singlestore/cluster-in-a-box
    

    Windows

    docker run -i --init `
        --name singlestore-ciab `
        -e LICENSE_KEY=<YOUR_LICENSE_KEY_FROM_PORTAL.SINGLESTORE.COM> `
        -e ROOT_PASSWORD=<YOUR_DESIRED_DATABASE_ROOT_PASSWORD> `
        -e START_AFTER_INIT=Y `
        -p 3306:3306 -p 8080:8080 `
        singlestore/cluster-in-a-box
    

    Note: If initialization fails, you will need to remove the container via docker rm singlestore-ciab before retrying this step.

  2. After the cluster has successfully initialized, start the container.

    docker start singlestore-ciab
    

Once you have SingleStore DB up and running, learn how to connect to your cluster in the next step.