Apologies for the 101-nature of this request. I’ve Googled how to add a host directory to a container and the answer is of course docker run -v. However, when I try to run this command
docker run -d -p --name mycontainer -v /mnt/data:/mnt/host myimage/mytag /bin/bash
I receive this message
docker: Error response from daemon: Conflict. The name “/mycontainer” is already in use by container 0335a8d78160361547f90adcda82790be0b284d4bb00ee6aeda6e1705ae99915. You have to remove (or rename) that container to be able to reuse that name…
See ‘docker run --help’.
Basically I have the situation where I have an existing container and I want to access the host mount point /mnt/data inside the docker container. Can someone tell me what I’m doing wrong? Here are my specs:
Thanks very much.