Chmod: cannot access '/opt/ngccli/ngc': No such file or directory

Executing the following command:
docker run -it --rm --network=host /bin/bash

results in the error:
chmod: cannot access '/opt/ngccli/ngc': No such file or directory

The docker image is downloaded and then is downloaded and extracted. It’s at the end of the extraction that the error occurs.

Until recently the command would start the container and execute /bin/bash. Has something changed recently with

1 Like

Yes, there is a update from ngccli which results in the issue when trigger TAO docker. We’re unable to install the CLI via the entrypoint since the relative path of the binary in the zip file has changed. Internally team will update the launcher with a fix. Currently, please use below workarounds.

Please refer to below 1st workaround.
Just add this: --entrypoint ""

For example,
$ docker run --runtime=nvidia -it --rm --entrypoint "" /bin/bash

The 2nd workaround is for uses who want to use tao launcher instead of “docker run”.

  1. Add "entrypoint": "" to ~/.tao_mounts.json
          "entrypoint": "" ,
          "shm_size": "16G",
  1. Modify lib/python3.6/site-packages/tao/components/docker_handler/ . This file should be available when you install nvidia-tao.

VALID_DOCKER_ARGS = [“user”, “ports”, “shm_size”, “ulimits”, “privileged”, “network”]


VALID_DOCKER_ARGS = [“user”, “ports”, “shm_size”, “ulimits”, “privileged”, “network”, “entrypoint”]


The new version of the wheel has already been released to PyPI.

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