New to Docker and this site so apologies if this is not the right forum…
I have docker up and running on a RHEL 7.4 host system, trial version of Docker EE.
Dockerfile with literally two lines:
RUN [“mkdir”, “/mydirectory”]
“docker build .” command results in this error:
standard_init_linux.go:187: exec user process caused "permission denied"
The command ‘mkdir /mydirectory’ returned a non-zero code: 1
SELinux is completely disabled so it’s not that, which I have seen while googling this…
Any ideas? I also tried using the ‘shell’ format of RUN but same error. If I use CMD there is no error but it also does not create the directory.