Ubuntu: overlayfs subshell and file creation failures

I’m getting what looks like overlayfs issues within subshells in Ubuntu.

if I do a:
docker run … mkdir blah

It works but as soon I put the same commands in a script I start getting overlayfs messages in the kernel logs. Any pointers to what might be happening ? I’m runing the latest Docker from apt repository. Thanks


“Kernel Logs”

[ 6555.391964] overlayfs: fs on ‘/home/bhuey/.local/share/docker/overlay2/l/OUQEOQ45CCWFS4AB2G6TJNS4NQ’ does not support file handles, falling back to xino=off.

[ 6555.412892] overlayfs: fs on ‘/home/bhuey/.local/share/docker/overlay2/l/NL4DVU3OMLPZ6QN3RK6CI7JY74’ does not support file handles, falling back to xino=off.

[ 6555.435900] overlayfs: fs on ‘/home/bhuey/.local/share/docker/overlay2/l/NL4DVU3OMLPZ6QN3RK6CI7JY74’ does not support file handles, falling back to xino=off.


#!/bin/bash

id

mkdir blah && rmdir blah

mkdir: cannot create directory ‘blah’: Permission denied