Execute selenium IDE pytest (firefox) on Docker Ubuntu 22.04

This is my environment:
VirtualBox VM: Ubuntu Desktop 22.04
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.2
[Jenkins 2.387.2]
Python 3.9.2, pytest-7.3.1, pluggy-1.0.0 anyio-3.6.2

I have created a pipeline running the following script:

pipeline {
    agent any

    stages {
        stage('Checkout') {
            steps {
                checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/raul-parada/Python-Selenium.git']])
            }
        }
        stage('Build') {
            steps {
                git branch: 'main', url: 'https://github.com/raul-parada/Python-Selenium.git'
                sh 'python3 test_multicooki.py'
            }
        }
        stage('Test') {
            steps {
                sh 'python3 -m pytest'
            }
        }
    }
}

I have installed firefox inside the docker using these commands:

echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list.d/debian.list
apt-get update
apt-get install -y --no-install-recommends firefox

I get the following version of firefox: Mozilla Firefox 112.0

However, I get the following error when building on Jenkins.

/usr/local/lib/python3.9/dist-packages/selenium/webdriver/firefox/webdriver.py:199: in __init__
    super().__init__(command_executor=executor, options=options, keep_alive=True)
/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py:286: in __init__
    self.start_session(capabilities, browser_profile)
/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py:378: in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py:440: in execute
    self.error_handler.check_response(response)

raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1

/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py:245: WebDriverException

I also tried to download the latest Geckodriver "/usr/bin# wget https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz"

adding it to the PATH:

root@dbb3bf11e899:/usr/bin# tar -xvzf geckodriver*
geckodriver
root@dbb3bf11e899:/usr/bin# chmod +x geckodriver
root@dbb3bf11e899:/usr/bin# export PATH=$PATH:/usr/bin/geckodriver.

But still the same error. Any clue? Thanks.