# Mount and bind volumes

1. Create Volume

```bash
docker volume create <volume_name>
```

2\. Verify volume

```bash
docker volume ls
```

3\. Create service and attach volume mount

```bash
docker service create --name <servicename> --replicas 2 --mount src=<name_of_volume>,dst=<destination_of_path> <name_of_docker_image>
```

4\. Inspect volume

```bash
docker inspect <volume_name>
```
