You can find the complete guide of Docker volume usage [here](https://docs.docker.com/userguide/dockervolumes/).
Let's use some examples to explain how it work (we assume we have a working runners).
Example 1 : adding a data volume
A data volume is a specially-designated directory within one or more containers that bypasses the Union File System. Data volumes are designed to persist data, independent of the container's life cycle.
```bash
```bash
[[runners]]
[runners.docker]
name ="ruby-2.1-docker"
host =""
url ="https://CI/"
hostname=""
token ="TOKEN"
tls_cert_path ="/Users/ayufan/.boot2docker/certs"
limit = 0
image ="ruby:2.1"
executor ="docker"
privileged =false
builds_dir ="/srv/builds"
disable_cache =true
volumes =["/path/to/volume/in/container"]
```
This will create a new volume inside the container at /path/to/volume/in/container.
Example 2 : mount a host directory as a data volume
In addition to creating a volume using you can also mount a directory from your Docker daemon's host into a container. It's usefull when you want to store builds outside the container.