To share a volume between multiple Docker containers there are two steps to follow:
1. Create a volume.
You can create a volume using the `docker volume create` command.
```
docker volume create myvol
```
1. Use the volume in your containers.
You can use the -v or —volume option in your `docker run` commands to mount a volume to your containers.
As an example to share a volume between two Ubuntu containers, your commands would look like this:
```
This will create two different Ubuntu containers (`mycontainer1` and `mycontainer2`) that share the same volume (`myvol`), mounted at the `/data` directory.
It is important to note that changes made in the directory `/data` inside one container are also visible in the directory `/data` inside the other container, since they share the same volume.