SingleStore DB

Upgrade the SingleStore DB Docker Image

Caution

If you do not use a volume to persist your data, you will lose any data stored in the SingleStore DB cluster-in-a-box container during the upgrade process.

  1. To upgrade the singlestore/cluster-in-a-box Docker image to the latest version, run docker pull:

    docker pull singlestore/cluster-in-a-box
    
  2. Stop and remove the old container. This will delete any data stored in the container.

    docker stop singlestore-ciab
    
    docker rm singlestore-ciab
    
  3. If you did not use a volume to preserve data in your container, restart it with the latest image by running steps 2 and 3 from Run the Container again.

  4. If you did set up your Docker container with a volume, run the following instead:

    Linux/macOS

    docker run -d --init \
        --name singlestore-ciab \
        -v singlestore-ciab-data:/var/lib/memsql \
        -p 3306:3306 -p 8080:8080 \
        singlestore/cluster-in-a-box
    

    Windows

    docker run -d --init `
        --name singlestore-ciab `
        -v singlestore-ciab-data:/var/lib/memsql `
        -p 3306:3306 -p 8080:8080 `
        singlestore/cluster-in-a-box