Docker Community Forums

Share and learn in the Docker community.

Different volume for each docker swarm task

Hi

I’m new to docker, and I want to deploy a number of docker swarm tasks such that each task puts output result in a different directory in the same HOST mounted volume (so that docker tasks do not overwrite each other). Also, the result folders, with all contained data, should persist after tasks finish and/or removed.

I tried different parameter combinations with the “–mount” value (with both “type=volume” and “type=bind”) but they all failed.

I wonder if you can help me with that?

Regards