soonminhwang / dockers Goto Github PK
View Code? Open in Web Editor NEWDockerfiles for my working environments
Dockerfiles for my working environments
Error:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 785
vtkXOpenGLRenderWindow (0x3a54650): GLEW could not be initialized.
Segmentation fault (core dumped)
Solution:
Connect nvidia-driver volume when docker image runs, add proper path to ${PATH} and ${LD_LIBRARY_PATH}.
Example:
docker run -it \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \\
--privileged \
-e DISPLAY=$DISPLAY \
-v /usr/lib/nvidia-384:/usr/lib/nvidia-384 \
-v /usr/lib32/nvidia-384:/usr/lib32/nvidia-384 \
--device /dev/dri \
YOUR_DOCKER_IMAGE_NAME
In docker container,
export PATH="/usr/lib/nvidia-384/bin":${PATH}
export LD_LIBRARY_PATH="/usr/lib/nvidia-384:/usr/lib32/nvidia-384":${LD_LIBRARY_PATH}
I know this problem has been mentioned in #1. But in my case, it may be different.
My Nvidia driver is 430, my GPU is GTX1050 and I use Nvidia docker1.
In problem #1 it suggests connecting the driver with docker. However, I don't have nvidia-430
folder in /usr/lib
but I have it in /usr/lib/x86_64-linux-gnu
. I don't have anything about nvidia in /usr/lib32
... So I cannot implement the solution from #1
My docker run command is
docker run \
--name ubuntu16_cuda8_con \
--user=root \
--gpu all \
--rm \
--detach=false \
-e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v `pwd`:/mnt/shared \
-it \
ubuntu16_cuda8_img /bin/bash -c "cd /mnt/shared && cd Pangolin/build/examples/HelloPangolin && ./HelloPangolin"
I just try to run the simple HelloPangolin
example to test. And get the following error
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
terminate called after throwing an instance of 'std::runtime_error'
what(): Pangolin X11: Unable to retrieve framebuffer options
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.