How to create a Jenkins agent running in a docker container on a different machine

Hi. I struggle with setting up the following Jenkins configuration.

  1. Jenkins controller running in docker on a Windows machine
  2. Jenkins agent running in docker on a Windows machine

I managed to setup the Jenkins controller in a docker container on a windows server. Now I would like to add an agent running on a different Windows machine. This windows machine has a Matlab licence and a USB key used for C-code generation. Can you help me how to setup the node configuration for an agent running in docker on the same network but on a different computer?

Thanks!

Hello @BavoDenys and welcome to this community :wave:

Are you planning to use your own Jenkins Docker image on the agent, or will you use one of the existing Jenkins agent Docker images?
Did you get a look at the existing documentation?