Skip to content

How to connect to an agent with agent_secret ? #12208

Answered by yajith
13E0 asked this question in Help
Discussion options

You must be logged in to vote

Hello,

You could try the following method.

  1. Enable "Show Docker Extensions system containers" in settings

  2. Containers > View Details > View Configurations > Open in IDE > Add the variable AGENT_SECRET: "yoursecret" under environment, save and refresh

  1. In Portainer extension UI, under environment > add agent (now the agent secret var will appear on the docker run command snippet).

With above changes in place, I was able to create an agent and connect it to Docker desktop > Portainer extension.
In my case, the agent was also running in WSL2 Ubuntu. Depending on where your agent is running, you will have to get the network communication to work.

cheers,
yajith

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@13E0
Comment options

Answer selected by 13E0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants