Article 5AE9E How to attach Cdrom to docker container

How to attach Cdrom to docker container

by
burgas
from LinuxQuestions.org on (#5AE9E)
I have mounted CDROM to my docker host
# sudo mount /dev/cdrom /media/cdrom

then create volume
# sudo docker volume create --name cdrom

and now I want to start container with my cdrom
# sudo docker run -it centos cdrom:/media/cdrom

but receive
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused exec: cdrom:/media/cdrom": stat cdrom:/media/cdrom: no such file or directory": unknown.

What I doing wrong? Thanks.latest?d=yIl2AUoC8zA latest?i=ZrSMo_b-I-A:WxJtfYn6czc:F7zBnMy latest?i=ZrSMo_b-I-A:WxJtfYn6czc:V_sGLiP latest?d=qj6IDK7rITs latest?i=ZrSMo_b-I-A:WxJtfYn6czc:gIN9vFwZrSMo_b-I-A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments