Will this command mount the host’s ‘/data’ directory to the ubuntu container in read-only mode?
‘docker run --add-volume /data /mydata --read only ubuntu’
Will this command mount the host’s ‘/data’ directory to the ubuntu container in read-only mode?
‘docker run --add-volume /data /mydata --read only ubuntu’
B is correct. docker run -v volume-name:/data/mydata:ro ubuntu