I get the following error when executing a Bamboo Script Task in a Isolate build Docker container:

```
simple  27-Jun-2019     Starting task 'XYZ' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
command 27-Jun-2019     Beginning to execute external process for build 'XYZ'\n ... running command line: \n/tmp/runInDocker3301468521768702357.sh /home/bamboo/bamboo-agent-home/temp/XYZ-8591248614821374698.sh\n ... in: /tmp\n
error   27-Jun-2019     flag provided but not defined: -e
error   27-Jun-2019     See 'docker exec --help'.
simple  27-Jun-2019     Failing task since return code of [/tmp/runInDocker3301468521768702357.sh /home/bamboo/bamboo-agent-home/temp/XYZ-8591248614821374698.sh] was 125 while expected 0
simple  27-Jun-2019     Finished task 'list buckets' with result: Failed

```

The configuration is similar to this link [Docker Runner](https://confluence.atlassian.com/bamboo/docker-runner-946020207.html) the following and shown here:
[![enter image description here](https://i.stack.imgur.com/0PuC2.png)](https://i.stack.imgur.com/0PuC2.png)

```
Isolate build -> Docker container -> Docker image: `ubuntu:16.04`

```

The script task is:

```
Shell -> Inline

```

with the following simple content:

```
echo "Hallo AWS"
#!/bin/bash

```

The Bamboo version is `6.5.1`.