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

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

It can be easily fixed with:

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