Mounting Local Drive

Folks I am using Mac and I am trying yo mount a local folder and I keep getting the an error. Here is what I am running:

Kellys-MacBook-Pro:~ kellybrady$ docker run -i -t --name tigergraph --mount type=bind,source=’/Users/kellybrady/tigergraph’,target=/home/tigergraph/data -p 4142:14240 tigergraph:V2.2.4

docker: Error response from daemon: Conflict. The container name “/tigergraph” is already in use by container “dd9025987a9aef46a78a7d6798149367d48b0b7ce04571a8b8a6ed48ee599735”. You have to remove (or rename) that container to be able to reuse that name.

I tried to change the name here: Kellys-MacBook-Pro:~ kellybrady$ docker run -i -t --name tigergraph

How do I remove or rename it so that I can drop files into the mounted folder

Hey Kelly,

To change the name use the command: “docker rename old_name new_name”.

Or to remove a container use: “docker rm name”.

“docker ps -a” will also show a list of the current containers and names. Running it with a different name should work as well from what you specified. What’s the error your encountering when you’re using a different name in “Kellys-MacBook-Pro:~ kellybrady$ docker run -i -t --name tigergraph”.