Issues with mounting

Expected behavior

I can run a container a second time immediately after running

Actual behavior

I cannot run the container again for several minutes after running. I get this:

docker: Error response from daemon: containerd: container did not start before the specified timeout.
Error response from daemon: Driver aufs failed to remove root filesystem f4305a5dc003bb3772b03571d2ab18518fcb46d0d8ec8b311d8e2d3ed8c4f51d: rename /var/lib/docker/aufs/mnt/7e0e7b55fcd703558ff8ecb506068d6e41b74b0101e227767b4838344188f529 /var/lib/docker/aufs/mnt/7e0e7b55fcd703558ff8ecb506068d6e41b74b0101e227767b4838344188f529


In my entrypoint script I am mounting a samba share. If I comment out the mount command, the issue is resolved.

Steps to reproduce the behavior

  1. In entrypoint, mount a samba share.
  2. Run the container twice in a row.