```
        $args = [
            'version' => '2006-03-01',
            'region' => 'eu-west-1',
            'credentials' => CredentialsProvider::get(),
            'http' => ['decode_content' => false],
            'retries' => 6,
            'endpoint' => 'http://localstack:4572',
            'bucket_endpoint' => true
        ];

        $this->client = new S3Client($args);
        $result = $this->client->createBucket([
            'Bucket' => "localbucket",
        ]);
        $buckets = $this->client->listBuckets();
```

$result shows the `@metadata` statusCode as 200 however the returned Location which should tell me where the created bucket is, is an empty string. So it isn't creating the bucket, but I'm getting a 200 response. Just to be sure I run `listBuckets()` and it confirms nothing is being created.

docker-compose.yml settings for localstack:

```
    localstack:
        container_name: localstack
        image: localstack/localstack
        ports:
          - "4567-4593:4567-4593"
          - "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
        environment:
          - HOSTNAME=pi.docker
          - SERVICES=s3,dynamodb
          - DEFAULT_REGION=eu-west-1
#            - DEBUG=${DEBUG- }
          - DATA_DIR=/tmp/localstack/data
          - PORT_WEB_UI=8080
#            - LAMBDA_EXECUTOR=local
          - DYNAMODB_ERROR_PROBABILITY=0.0
          - DOCKER_HOST=unix:///var/run/docker.sock
        volumes:
          - "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
          - "/var/run/docker.sock:/var/run/docker.sock"
```

Bonus issue: as far as I can tell persistence for s3 doesn't work, I've set DATA_DIR, I've tried changing the volume to `"localstack:/tmp/localstack"` and setting a persisting volume for that. And the directory does persist, however the s3 data isn't stored here so it's reset when taking down the container.
bucket_name = 'test-bucket-%s' % short_uid()
        object_key = 'data'
        self.s3_client.create_bucket(Bucket=bucket_name)
        body = 'Hello\r\n\r\n\r\n\r\n'
        headers = """
            Authorization: foobar
            Content-Type: audio/mpeg
            X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD
            X-Amz-Date: 20190918T051509Z
            X-Amz-Decoded-Content-Length: %s
        """ % len(body)
        headers = dict([[field.strip() for field in pair.strip().split(':', 1)]
            for pair in headers.strip().split('\n')])
        data = ('d;chunk-signature=af5e6c0a698b0192e9aa5d9083553d4d241d81f69ec62b184d05c509ad5166af\r\n' +
            '%s\r\n0;chunk-signature=f2a50a8c0ad4d212b579c2489c6d122db88d8a0d0b987ea1f3e9d081074a5937\r\n') % body
        
        url = '%s/%s/%s' % (os.environ['TEST_S3_URL'], bucket_name, object_key)
        req = PutRequest(url, to_bytes(data), headers)
        urlopen(req, context=ssl.SSLContext()).read()
        
        downloaded_object = self.s3_client.get_object(Bucket=bucket_name, Key=object_key)
        download_file_object = to_str(downloaded_object['Body'].read())
        self.assertEqual(len(str(download_file_object)), len(body))
        self.assertEqual(str(download_file_object), body)
        
        self._delete_bucket(bucket_name, [object_key])
    def test_s3_put_object_on_presigned_url(self):