В Dockerfile есть строка:
RUN chmod +x /script.sh
sudo docker build --squash -t "$tag" .
chmod: changing permissions of '/script.sh': Operation not permitted
The command '/bin/sh -c chmod +x /script.sh' returned a non-zero code: 1
Docker version 17.03.2-ce, build f5ec1e2