Docker Community Forums

Share and learn in the Docker community.

Unable to make an docker mkdir -p /toto on second docker derived from first

Hi,

I create an docker machine “D2” FROM docker “D1”, this comming from FROM centos7

When i RUN mkdir -p /toto into docker D1 that’s OK

But when RUN mkdir -p /toto in docker D2, I have acces denied ?

Why ?
Regards
Phil

Pourquoi ?

Merci

Hi

In my parent dockker creating directory is OK

docker build -t 3postgres95_from_oracle11xe .
FROM centos:centos7.2.1511

#test OK
ENV BOUTILS /outils
RUN mkdir -p $BOUTILS


But Not in son dockerFile ?
Why ?

FROM 3postgres95_from_oracle11xe
#JBOSS
ENV OUTILS /outils
#bad permission denied
RUN mkdir -p $OUTILS

Regards