Docker Community Forums

Share and learn in the Docker community.

Unable to create directory : getting mkdir: cannot create directory ‘test’: No such file or directory

I have a base image of ubuntu:20.04 on which my app is running, but after sometime when im going inside my container and trying to create any folder i’m getting error “mkdir: cannot create directory ‘test’: No such file or directory”.

Lets suppose i’m creating any folder on /tmp. root@ip-xxx-xxx-xxx:/tmp# mkdir -p -v /tmp/test
mkdir: cannot create directory ‘/tmp/test’: No such file or directory, Please help why i’m seeing this.