How to start detectnet.py in docker automatically on boot up of nano

Hello all,

I have a project where I need to start detectnet.py in docker container automatically on start up. However, all my attempts so far using python scripts to navigate within docker have not gotten anywhere within the container. So far, I am able to start the docker container up, but do not have or know how to navigate within the container to /python/training/detection/ssd so that I can run the python script to run detectnet.py within the container.

Does anyone know how to help with this situation?

Kind regards,
Paul

Hi,

You can run a command within the container via docker run.

For example:

$ docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
$ docker run ... mycode.py

Thanks.

Thank you!

I will let you know if I have any more questions.

Regards,
Paul