I can install lib in nvidia docker using apt-get. But after exiting the docker, the lib doesn’t exist anymore. How can I install permanently in the docker?
Please run as below.
- $ docker run --runtime=nvidia -it <your_old_docker> /bin/bash
- install your lib
- open another shell, and run “$ docker ps” to check the container id
- $ docker commit <container_id> <your_new_docker_name>
- then, you will find your new docker via “$ docker images”