[Docker] Solution for ImportError: libGL.so.1: cannot open shared object file: No such file or directory

less than 1 minute read

When we pull docker image from dockerhub, the container sometimes throws error regarding with libGL.so.1:

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

It is easily fixed with:

$ sudo apt-get update
$ sudo apt-get install -y libgl1-mesa-dev

Leave a Comment