java.io.IOException: error=13, Permission denied

Hello everyone I installed jenkins in docker using this docker-compose.yml file

version: '3.8'

services:
  jenkins: 
    image: jenkins/jenkins:lts
    container_name: jenkins
    user: root
    ports:
      - 8080:8080
      - 50000:50000
    volumes:
      - ~/jenkins_home:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/local/bin/docker:/usr/local/bin/docker

this is my pipeline

pipeline {
    agent any
    
    environment{
        DEPLOYMENT = 'local'
        ENVIRONMENT = 'development'
        DB = 'mongodb://mongodb:27017/todo_list'
        DB_NAME = 'todo_list'
        DB_DEVELOPMENT = 'mongodb://mongodb:27017/todo_list'
        DB_NAME_DEVELOPMENT = 'todo_list'
    }

    stages {
        stage('Checkout') {
            steps {
                git 'https://github.com/Iheanacho-ai/FullStack-Todo-List-Application.git'
                
            }
        }
        stage('Docker Build and Push') {
            steps {
                script {
                    // This step should not normally be used in your script. Consult the inline help for details.
                    withDockerRegistry(credentialsId: '***', toolName: 'docker') {
                        sh "docker build -t todolist ."
                        sh "docker tag todolist amaraiheanacho/todolist:v1-release"
                        sh "docker push amaraiheanacho/todolist:v1-release"
                        
                    }
                }
            }
        }
        stage('Docker deploy') {
            steps {
                sh 'docker compose up -d'
            }
        }
    }
}

but I keep getting this error "java.io.IOException: error=13, Permission denied


"