Taken from https://github.com/dagger/dagger/pull/239 Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>