### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

when installing localstack from powershell, it works fine, but some commands, like `localstack status` fail:

```
PS C:\Users\thomas> localstack status

C:\Users\thomas>python C:\Users\thomas\AppData\Local\Programs\Python\Python38\Scripts\\localstack status
Traceback (most recent call last):
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\api\client.py", line 268, in _raise_for_status
    response.raise_for_status()
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: http+docker://localnpipe/v1.41/containers/55088946b6b00e0ff427675ba13af146256d07050c00276b8752ce442ab27601/exec

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\utils\docker_utils.py", line 1606, in exec_in_container
    result = container.exec_run(
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\models\containers.py", line 193, in exec_run
    resp = self.client.api.exec_create(
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\utils\decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\api\exec_api.py", line 80, in exec_create
    return self._result(res, True)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\api\client.py", line 274, in _result
    self._raise_for_status(response)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\api\client.py", line 270, in _raise_for_status
    raise create_api_error_from_http_exception(e)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\docker\errors.py", line 31, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 409 Client Error for http+docker://localnpipe/v1.41/containers/55088946b6b00e0ff427675ba13af146256d07050c00276b8752ce442ab27601/exec: Conflict ("Container 55088946b6b00e0ff427675ba13af146256d07050c00276b8752ce442ab27601 is not running")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\utils\bootstrap.py", line 137, in get_server_version
    version, _ = DOCKER_CLIENT.exec_in_container(
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\utils\docker_utils.py", line 1646, in exec_in_container
    raise ContainerException()
localstack.utils.docker_utils.ContainerException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\Scripts\\localstack", line 23, in <module>
    main()
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\Scripts\\localstack", line 19, in main
    main.main()
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\cli\main.py", line 6, in main
    cli()
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\cli\plugin.py", line 15, in __call__
    self.group(*args, **kwargs)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 1637, in invoke
    super().invoke(ctx)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\cli\localstack.py", line 59, in localstack_status
    ctx.invoke(localstack_status.get_command(ctx, "docker"))
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\cli\localstack.py", line 67, in cmd_status_docker
    print_docker_status()
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\cli\localstack.py", line 338, in print_docker_status
    grid.add_row("Runtime version", "[bold]%s[/bold]" % get_server_version())
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\utils\bootstrap.py", line 146, in get_server_version
    version, _ = DOCKER_CLIENT.run_container(
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\utils\docker_utils.py", line 1582, in run_container
    result = self.start_container(
  File "C:\Users\thomas\AppData\Local\Programs\Python\Python38\lib\site-packages\localstack\utils\docker_utils.py", line 1441, in start_container
    with sock:
AttributeError: __enter__
```

### Expected Behavior

i would expect the command to not raise an exception

### How are you starting LocalStack?

With the `localstack` script

### Steps To Reproduce

`localstack status`


### Environment

```markdown
- OS: Windows 10
- LocalStack: 0.13.3.3
```


### Anything else?

Looks like this is related to the docker socket client library that isn't working correctly under windows. A workaround could be to set `LEGACY_DOCKER_CLIENT=1` by default if we're on windows.
def test_extract_port_flags(self):
        port_mappings = PortMappings()
        flags = extract_port_flags("foo -p 1234:1234 bar", port_mappings=port_mappings)
        self.assertEqual("foo  bar", flags)
        mapping_str = port_mappings.to_str()
        self.assertEqual("-p 1234:1234", mapping_str)
        port_mappings = PortMappings()
        flags = extract_port_flags(
            "foo -p 1234:1234 bar -p 80-90:81-91 baz", port_mappings=port_mappings
        )
        self.assertEqual("foo  bar  baz", flags)
        mapping_str = port_mappings.to_str()
        self.assertIn("-p 1234:1234", mapping_str)
        self.assertIn("-p 80-90:81-91", mapping_str)
    def test_overlapping_port_ranges(self):
        port_mappings = PortMappings()
        port_mappings.add(4590)
        port_mappings.add(4591)
        port_mappings.add(4593)
        port_mappings.add(4592)
        port_mappings.add(4593)
        result = port_mappings.to_str()
        
        self.assertEqual("-p 4590-4592:4590-4592 -p 4593:4593", result)
    def test_port_ranges_with_bind_host(self):