title: Unable to setup Jenkins slave on docker
body: <p>I'm trying to create slave on docker by using the below command but it returned exception</p>
  
  <pre><code>:~$ docker run jenkins/jnlp-slave -disableHttpsCertValidation -url https://hostName/CI-KINDLE-1924  774351357f93a1026afasdfagsg180551cca56a9cfa741234531fsdfdee8feeb dockerslave
  </code></pre>
  
  <p><strong>Exception:</strong></p>
  
  <p>Observed the below exception in console:</p>
  
  <blockquote>
    <p>INFO: Protocol JNLP4-connect encountered an unexpected exception
    java.util.concurrent.ExecutionException:
    org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException:
    Unknown client name: dockerslave
            at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:223)
            at hudson.remoting.Engine.innerRun(Engine.java:614)
            at hudson.remoting.Engine.run(Engine.java:474) Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException:
    Unknown client name: dockerslave
            at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.newAbortCause(ConnectionHeadersFilterLayer.java:378)
            at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onRecvClosed(ConnectionHeadersFilterLayer.java:433)
            at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816)
            at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
            at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:172)</p>
  </blockquote>
  
  <p>When I tried to connect through "Web Launch agent from browser" using below command It connected successfully.</p>
  
  <pre><code>java -jar agent.jar -jnlpUrl https://hostName/CI-KINDLE-1924/computer/Worker/slave-agent.jnlp -secret 774351357f93a1026afasdfagsg180551cca56a9cfa741234531fsdfdee8feeb -workDir "/x/home/achu"
  </code></pre>
  
  <p>The above command works as expected and the slave will be active. But I just want to create slave nodes in docker and wanna activate them at runtime and destroy.</p>
  
  <p>Please anyone help me to achieve this</p>