Docker container to share a volume mounted on /shared
- Install Docker
- Pull from Docker Hub
docker pull xaamin/shared-volume
- Build an image from Dockerfile
docker build -t xaamin/shared-volume https://github.com/xaamin/shared-volume.git
You must provide a volume mounted on /shared
docker run --d -name "data.container" -v /path/with/data:/shared xaamin/shared-volume
Use --volumes-from to use this container into another