Well, the directory /var/www does not exist either and the issue is that mkdir command is recursive by default, i.e. mkdir assumes that the immediate parent directory already exists.
Try using this :
mkdir -p /var/www/app
Or what you can do is , you can try and install a package that makes a
/var/www before itself.
Hope that helped :)
If you think you are weak in docker and need help from professional DevOps engineers who have immense knowledge in docker, docker training is the right course for you.