22년 2월에 작성한 글입니다.
docker service create --mount 옵션 사용하여 볼륨 지정docker service create --name ubuntu \
--mount type=bind,source=/root/host,target=/root/container \
ubuntu:14.04 \
ping docker.com
docker service create --name ubuntu \
--mount type=volume,source=myvol,target=/root \
ubuntu:14.04 \
ping docker.com
mount 로 지정source: 사용할 볼륨target: 컨테이너 내부 마운트 될 디렉터리 위치volume-nocopy: 볼륨으로 파일이 복사되는것 방지docker node)