When I remove a folder by using rm -rfv ${TEMP_STORAGE}’, shortly followed by an ‘mkdir -pv ${TEMP_STORAGE}’ to recreate the same folder, I get

mkdir: cannot create directory './temp_storage': Operation not permitted

It seems the rm command is not fully finished yet, somehow.

Version info:

Docker desktop 2.2.0.4 (43472)

# uname -a

Linux 32b0494e3950 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 x86_64 GNU/Linux

(The image is based on the debian:stretch image)

# mkdir --version

mkdir (GNU coreutils) 8.26

# rm --version

rm (GNU coreutils) 8.26

 

Thanks,

Peter