### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

The documentation states that when setting DYNAMODB_SHARE_DB=1 DynamodDB will use a single database for each credential and region. This doesn't work when LocalStack is started from CLI. For example:

`DYNAMODB_SHARE_DB=1 localstack start -d`

In Docker logs you can find:
INFO:localstack.services.dynamodb.server: SharedDb:     false

At least it seems that the environment variable is missing from CONFIG_ENV_VARS which is used for passing the environment variables to container.

Tried the following fix and at least after brief testing it solves the issue:
https://github.com/jvuori/localstack/commit/6bb4a3c68c8675b9548e0f5eb8028397d9ee5a47
Feel free to pull if the fix is appropriate. (Sorry, no unit test...)

### Expected Behavior

`DYNAMODB_SHARE_DB=1 localstack start -d`
should start DynamoDB with:

INFO:localstack.services.dynamodb.server: SharedDb:     true

### How are you starting LocalStack?

With the `localstack` script

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

DYNAMODB_SHARE_DB=1 localstack start -d


### Environment

```markdown
- OS: Windows + WSL2 + Docker CE running inside WSL2
- LocalStack: 0.14.1
```


### Anything else?

_No response_
[
                os.path.exists("/sys/fs/cgroup/memory/docker/"),
                any(
                    "docker-" in file_names
                    for file_names in os.listdir("/sys/fs/cgroup/memory/system.slice")
                ),
                os.path.exists("/sys/fs/cgroup/docker/"),
                any(
                    "docker-" in file_names
                    for file_names in os.listdir("/sys/fs/cgroup/system.slice/")
                ),
            ]
        ):
            return False
    except Exception:
        pass
    with open("/proc/1/cgroup", "rt") as ifh:
        content = ifh.read()
        if "docker" in content:
            return True
        os_hostname = socket.gethostname()
        if os_hostname and os_hostname in content:
            return True
    return False
OVERRIDE_IN_DOCKER = is_env_true("OVERRIDE_IN_DOCKER")
is_in_docker = in_docker()
is_in_linux = is_linux()
CONFIG_PROFILE = os.environ.get("CONFIG_PROFILE", "").strip()
CONFIG_DIR = os.environ.get("CONFIG_DIR", os.path.expanduser("~/.localstack"))
try: