Docker/run.sh Error:the input device is not a TTY

Hello
I’m currently using the Jetson Nano Developer Kit and JetPack 4.6.3-b17.
I would like to achieve the following behavior:
・Power on the Jetson Nano.
・Automatically start the docker container.
・Run the person detection program inside the docker container.
However, it’s not functioning properly. Error:the input device is not a TTY.

I have created “test.service” file in “/etc/systemd/system”.
It’s “test.service” file.

[Unit]
Description=test
Wants=network-online.target
After=network-online.target

[Service]
User={UserName}
ExecStart=/home/{UserName}/product/run_container.sh

[Install]
WantedBy=multi-user.target

It’s “run_container.sh” script.
“detect_people.py” is person detection program.

cd /home/{UserName}/jetson-inference
docker/run.sh -v /home/{UserName}/product:/tmp -r python3 /tmp/detect_people.py

Is there any solution available?
I would appreciate it if you could provide some guidance or assistance.
I think I need to modify the “sudo docker run” command in “jetson-inference/docker/run.sh”.

Thank you for reading.

Hi,

Could you share the command in docker/run.sh?
Do you launch the container with -it?

Thanks.

1 Like

Hi @Kazuya.S @AastaLLL, yes by default docker/run.sh will start the jetson-inference container in interactive mode with -it:

Try removing the -it or creating your own customized version of the script for launching your container.

1 Like

Hi, @AastaLLL @dusty_nv.
I apologize for the delay in my response.

It worked well after removing “-it”!
Thank you both very much.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.