Docker Community Forums

Share and learn in the Docker community.

IS there any posibility to persistance data in single volume container multiple paths


(Cheftestn) #1

i want to run wordpress contaner , it having both mysql and apache in single container, i crete one datavolume container and i try to preserver mysql data and wordpress webcontant in that volume is there any posibility to attach single volume to mount multiple paths in container ?


(David Maze) #2

Not that I’m aware of. Possibly if you put the same path or volume name as the first part of the docker run -v option it would work. Symlinks, configuring processes to point at subdirectories of the volume directory, and running the two processes in two separate containers (IMHO a simpler setup, and one that would let you use the standard mysql image for your database) would also all work.