u/fjammes/dm-1497

PR for review.
OK, if this happens in the context of the docker image then it should be fine. I thought that this script may be running on the host machine, but this actually does not make much sense to me now. I guess it's OK. Sorry for the noise.