<commit_before>[TOC]
# Using the Service in Docker
The service works with existing Docker volume commands.

1. [Docker volume create](https://docs.docker.com/engine/reference/commandline/volume_create/)
2. [Docker volume inspect](https://docs.docker.com/engine/reference/commandline/volume_inspect/)
3. [Docker volume ls](https://docs.docker.com/engine/reference/commandline/volume_ls/)
4. [Docker volume rm](https://docs.docker.com/engine/reference/commandline/volume_rm/)

<script type="text/javascript" src="https://asciinema.org/a/80417.js" id="asciicast-80417" async></script>

## Docker volume create options
### size

```
docker volume create --driver=vmdk --name=MyVolume -o size=10gb
```

The volume units can be ```kb, mb, gb and tb```

The default volume size is 100mb

### policy (vsan-policy-name)

```
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o vsan-policy-name=allflash
```

Policy needs to be created via the vmdkops-admin-cli. Once policy is created, it can be addressed during create by passing the ```-o vsan-policy-name``` flag.

### diskformat
```
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o diskformat=zeroedthick
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o diskformat=thin
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o diskformat=eagerzeroedthick
```

Docker volumes are backed by VMDKs. VMDKs support multiple [types](https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1022242)<commit_msg>Update docker-volume-cli.md<commit_after>[TOC]
# Using the Service in Docker
The service works with existing Docker volume commands.

1. [Docker volume create](https://docs.docker.com/engine/reference/commandline/volume_create/)
2. [Docker volume inspect](https://docs.docker.com/engine/reference/commandline/volume_inspect/)
3. [Docker volume ls](https://docs.docker.com/engine/reference/commandline/volume_ls/)
4. [Docker volume rm](https://docs.docker.com/engine/reference/commandline/volume_rm/)

<script type="text/javascript" src="https://asciinema.org/a/80417.js" id="asciicast-80417" async></script>

## Docker volume create options
### size

```
docker volume create --driver=vmdk --name=MyVolume -o size=10gb
```

The volume units can be ```kb, mb, gb and tb```

The default volume size is 100mb

### vsan-policy-name

```
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o vsan-policy-name=allflash
```

Policy needs to be created via the vmdkops-admin-cli. Once policy is created, it can be addressed during create by passing the ```-o vsan-policy-name``` flag.

### diskformat
```
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o diskformat=zeroedthick
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o diskformat=thin
docker volume create --driver=vmdk --name=MyVolume -o size=10gb -o diskformat=eagerzeroedthick
```

Docker volumes are backed by VMDKs. VMDKs support multiple [types](https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1022242)
{'fraction_non_alphanumeric': 0.13898742341180265, 'fraction_numerical': 0.021928410190261205, 'mean_word_length': 5.011627906976744, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5919702', 'n_tokens_mistral': 1080, 'n_tokens_neox': 991, 'n_words': 271}