---
title: "Docker installation"
slug: "docker-installation"
abstract: "How to install the Content Hub CLI using Docker."
---
# Docker installation

Docker is a platform for developing and running applications. With Docker, you can manage your infrastructure in the same way you manage your applications. You must have [Docker installed](https://docs.docker.com/get-docker/) on your computer. To verify your installation, run the following command:

```shell
docker --version

```

## Run the image

To use Docker, first use the following command to run the image:

```shell
docker run --rm -it -v ch-cli-data:/root/.ch-cli scr.sitecore.com/sch/ch-cli

```

This command is equivalent to executing the `ch-cli` binary on your local computer and takes the same arguments.

- `--rm` instructs Docker to remove the container after executing the command.
- `-it` enables an interactive session. Required for CLI commands that take additional input.
- `-v` specifies a named volume to persist all configuration between container restarts. Instead of a named volume, this could also point to a local directory on your computer.

## Update the image

Docker generally only downloads the image when it is first requested. To update the image to the latest version, run the following command:

```shell
docker pull scr.sitecore.com/sch/ch-cli:latest

```