### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

`PORTS_CHECK_DOCKER_IMAGE` is not configurable which prevents ECS tasks from running on air-gapped environment



### Expected Behavior

`PORTS_CHECK_DOCKER_IMAGE` can be configured via configuration option to allow use of any available image 

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

Run an ECS task in an environment where localstack/localstack is not available.

### Environment

```markdown
- OS: RHEL8
- Docker runtime version: Podman v4.2.0
- LocalStack: 1.3.1
```


### Anything else?

_No response_
global DATA_DIR, PERSISTENCE
    if DATA_DIR:
        
        
        os.environ["PERSISTENCE"] = "1"
        PERSISTENCE = True
    if is_in_docker:
        dirs = Directories.for_container()
    else:
        dirs = Directories.for_host()
    if PERSISTENCE:
        if DATA_DIR:
            LOG.warning(
                "Persistence mode was activated using the DATA_DIR variable. DATA_DIR is deprecated and "
                "its value is ignored. The data is instead stored into %s in the LocalStack volume.",
                dirs.data,
            )
        
        DATA_DIR = dirs.data
        os.environ["DATA_DIR"] = dirs.data  
    return dirs
dirs: Directories
if LEGACY_DIRECTORIES:
    CLEAR_TMP_FOLDER = False
    dirs = init_legacy_directories()
else:
    dirs = init_directories()