Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did Apollo docker build upon Nvidia-docker? resulting in failed to install nvidia-driver by *.run #3911

Closed
Durant35 opened this issue Apr 17, 2018 · 5 comments
Assignees
Labels
Module: Docker Indicates docker module related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community

Comments

@Durant35
Copy link

Even I just run the apollo docker and enter, some modules related to nvidia-driver exist

xxx@in_dev_docker:/apollo$ lsmod | grep nvidia
nvidia_drm             49152  7 
nvidia_modeset        860160  5 nvidia_drm
nvidia              13144064  339 nvidia_modeset
drm_kms_helper        155648  2 i915_bpo,nvidia_drm
drm                   364544  6 i915_bpo,drm_kms_helper,nvidia_drm

which are almost the same as the host!!!

xxx@xxx-ThinkPad-T460:~$ lsmod | grep nvidia
nvidia_uvm            675840  0
nvidia_drm             49152  7
nvidia_modeset        860160  5 nvidia_drm
nvidia              13144064  340 nvidia_modeset,nvidia_uvm
drm_kms_helper        155648  2 i915_bpo,nvidia_drm
drm                   364544  6 i915_bpo,drm_kms_helper,nvidia_drm

Actually, I had successfully run the offline perception demo but failed after system upgrade nvidia-driver, replacing that installed through NVIDIA-Linux-x86_64-384.98.run related to my GeForce 940MX, as mentioned in:

@xiaoxq
Copy link
Contributor

xiaoxq commented Apr 17, 2018

May I know the image version?

Current apollo container is ubuntu 14.04 + manually installed Nvidia Driver / Cuda 8 / Cudnn 7. But we are trying to migrate to nvidia/cuda:8.0-cudnn7-devel-ubuntu14.04 as the base, as shown in the dockerfile: https://github.com/ApolloAuto/apollo/blob/master/docker/build/dev.x86_64.dockerfile

Maybe you can try building you own image from the dockerfile and play with it. One thing I know is that nvidia-docker v1 is preferred for our situation.
https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(version-1.0)

Please share with us about your progress :)

@Durant35
Copy link
Author

Thanks! My image is dev-x86_64-20171204_1625 during Apollo1.5, almost 4 months ago since I tried.

$ docker image ls
REPOSITORY                                 TAG                        IMAGE ID            CREATED             SIZE
apolloauto/apollo                          dev-Nvidia-driver          e67f10db2e7c        43 minutes ago      12.4GB
apolloauto/apollo                          dev-Nvidia                 6c26075ad2b0        17 hours ago        12.4GB
apolloauto/apollo                          dev-x86_64-20171204_1625   282c24a8f78f        4 months ago        11.5GB
registry.docker-cn.com/apolloauto/apollo   dev-x86_64-20171204_1625   282c24a8f78f        4 months ago        11.5GB

@mickeyouyou mickeyouyou added Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community Module: Docker Indicates docker module related issues labels Apr 17, 2018
@xiaoxq
Copy link
Contributor

xiaoxq commented May 7, 2018

Sorry for the delay.

I'm developing a canary version of docker scripts which are still in testing. Here is the document: https://github.com/ApolloAuto/apollo/blob/master/docker/canary/README.md

@alexbuyval
Copy link

@xiaoxq Thank you for canary version. This version solved the issue with nvidia drivers for me.
However, I cannot run any visualizer there.
It seems that there is no OpenGL library in your docker. I found this issue and I would like to try to build new docker container based on nvidia:opengl containers.
What do you think it makes sense?
And could you share docker file which you used for canary version?

Thanks,
Alex

@xiaoxq
Copy link
Contributor

xiaoxq commented Aug 31, 2020

Should have been fixed in master HEAD.

@xiaoxq xiaoxq closed this as completed Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Docker Indicates docker module related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community
Projects
None yet
Development

No branches or pull requests

4 participants