Docker Community Forums

Share and learn in the Docker community.

Error while building a docker image related to security

build
docker

(Mostafae) #1

I am trying to build a docker image on windows and i am getting this error message:

E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
The command ‘/bin/sh -c apt-get -y update && apt-get install -y python3-dev libpng-dev apt-utils python-psycopg2 python-dev postgresql-client’ returned a non-zero code: 100

Here is my docker file:

FROM microsoft/mmlspark
MAINTAINER Mostafa Em@m.com

RUN apt-get -y update && apt-get install -y
python3-dev
libpng-dev
apt-utils
python-psycopg2
python-dev
postgresql-client
build-essential

RUN pip install --upgrade setuptools
RUN pip install cython
RUN pip install numpy
RUN pip install matplotlib
RUN pip install pystan
RUN pip install fbprophet
RUN pip install psycopg2
RUN pip install sqlalchemy

Any one knows how to fix this issue?

Thanks a lot.