Docker Community Forums

Share and learn in the Docker community.

Trying to run docker volume mounted from host in a tomcat image built in centos 7

I have been attempting to mount a volume into a docker service container in docker swarm, I am creating a volume and I am linking the volume to the data I wish to use on the host. The container needs the webapps directory which resides on the host the command I use after creating the volume using docker volume create website, and moving to the directory, located a var/lib/docker/volume. I create a link to the data on the host using ln -s /data/files/webapps the container remains in a start loop. What could I be doing wrong.