docker run -v /tmp/sensu:/var/lib/sensu -d --name sensu-backend -p 2380:2380 -p 3000:3000 -p 8080:8080 -p 8081:8081 sensu/sensu:latest sensu-backend start
Note 1: this will mount your hosts /tmp/sensu
directory into the container's /var/lib/sensu
. Replace the host directory as needed for your environment. I use /tmp/sensu
here to make it easy to clean up and get back to an unconfigured state.
Note 2: The sensu-backend service exposes all necessary ports to the local host so that you can interact with it as if it were running as a local service instead of a container.