I'm new to Docker, and I would like to reproduce a project from a https://github.com/Zhongdao/Towards-Realtime-MOT.
In order to run the project examples, I need to build an image, so I first cloned the repository locally.
The documentation tells me to run the following commands:
docker build -t towards-realtime-mot docker/
docker run --rm --gpus all -v $(pwd)/:/Towards-Realtime-MOT -ti towards-realtime-mot /bin/bash
cd /Towards-Realtime-MOT;
python demo.py --input-video path/to/your/input/video --weights path/to/model/weights
--output-format video --output-root path/to/output/root
I'm running on macOS (without gpu support), and I've done:
➜ docker build -t towards-realtime-mot docker/
➜ docker run --rm -v -ti towards-realtime-mot /bin/bash
➜ cd /Towards-Realtime-MOT
cd: no such file or directory: /Towards-Realtime-MOT
I've successfully built the docker image, but I'm stuck from the second command onwards. I know that I should create a folder called Towards-Realtime-MOT
, but $(pwd)
confuses me since it gives me erros (docker: invalid reference format. See 'docker run --help'.). What is the correct way?