Docker Community Forums

Share and learn in the Docker community.

Is it correct volume mapping?


(Anacondaonline) #1

Please see this docker run command . Is it right or wrong in syntax ?

docker run -p 8080:8080 -p 8001:8001 -v /home/myuser/wb_git:/opt/jboss/wildfly/bin/.niogit:Z -d --name drools-workbench jboss/drools-workbench-showcase:latest

my concern

Did you notice . there are TWO “:” for volume mapping

/home/myuser/wb_git:/opt/jboss/wildfly/bin/.niogit

AND

/opt/jboss/wildfly/bin/.niogit:Z

Is it correct syntax ? or a typo ?


(Sam) #2

is that opt/jboss/wildfly/bin/.niogit:Z a file or a folder?

this /home/myuser/wb_git looks like a folder

use the other syntax to help you

–mount,type=bind,source=…,dest=…


(David Maze) #3

Does docker run accept it? Does it match the syntax in the documentation?