> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/containerization/docker-swarm/mount-and-bind-volumes.md).

# 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>
```
