Docker on Ubuntu

I am new to docker and I have ran into a few problems. What I am trying to do is create a docker image with python, OPenCV and pytesseract as dependencies and I have already created my dockerfile but when I go to create my base image it says cant stat into path overlay2. I am also using pip3 to install the programs within my dockerfile “RUN pip3 install -y python” for example, could that also be the problem? Any suggestions would help greatly on how to complete this task.