"ngc config set" gives an error in the Dockerfile

I’m currently trying to create a pre-set up “tlt-streamanalytics” docker image for in-house development.

But when I run RUN ngc config set in the Dockerfile, I get an error.

I don’t know what’s wrong, so please help someone.


FROM nvcr.io/nvidia/tlt-streamanalytics:v3.0-py3
SHELL ["/bin/bash", "-c"]
RUN source ~/.bashrc
RUN ngc config set


 => ERROR [3/3] RUN ngc config set                                                                                                                         0.2s
 > [3/3] RUN ngc config set:
#6 0.229 /bin/bash: ngc: command not found
executor failed running [/bin/bash -c ngc config set]: exit code: 127

I was able to solve it myself.
I succeeded by executing RUN /install_ngc_cli.sh.