Hi @Hannah, follow these steps:
1. Create an independent volume using the following command:
docker volume create --name DataVolume1
2. Create a new container and attach this newly created volume to it
docker run -ti --rm -v DataVolume1:/datavolume1 ubuntu
3. Create another container and attach this volume to it:
docker run --rm -ti -v DataVolume1:/datavolume1 ubuntu
Now you these containers have the same volume and communicate through it.