How to run docker command in Docker plugin

Hi everyone, I’m trying to run a docker command for my docker cloud node, but as it mentioned in the documentation it may conflicts with the SSH launcher.
I’m looking for a way to do it properly, any idea would be great!
this is my command:
cat /etc/hosts_extra >> /etc/hosts

and I’m trying this one regarding the document solution cat /etc/hosts_extra >> /etc/hosts $@

pipeline {
    agent {
        docker {
            image 'alpine' // Use the Docker image you want
            args '-v /etc/hosts_extra:/etc/hosts_extra:ro' // Mount the file into the container
            label 'docker-agent' // Use the label you defined in the Docker template
        }
    }
    stages {
        stage('Run Docker Command') {
            steps {
                sh '''
                    cat /etc/hosts_extra >> /etc/hosts
                '''
            }
        }
    }
}