title: Jenkins. Invalid agent type "docker" specified. Must be one of [any, label, none]
body: <p>My JenkinsFile looks like:</p>
  
  <pre><code>pipeline {
      agent { 
          docker { 
              image 'node:12.16.2'
              args '-p 3000:3000'
          } 
      }
      stages {
          stage('Build') {
              steps {
                  sh 'node --version'
                  sh 'npm install'
                  sh 'npm run build'
              }
          }
          stage ('Deliver') {
              steps {
                  sh 'readlink -f ./package.json'
              }
          }
      }
  }
  </code></pre>
  
  <p>I used to have Jenkins locally and this configuration worked, but I deployed it to a remote server and get the following error:</p>
  
  <pre><code>WorkflowScript: 3: Invalid agent type "docker" specified. Must be one of [any, label, none] @ line 3, column 9.
             docker { 
  </code></pre>
  
  <p>I could not find a solution to this problem on the Internet, please help me</p>