How to install an agent on a local standalone docker install? #12802
Replies: 2 comments 3 replies
-
Hi @TheLargeCactus Can you walk me through the steps you are going through? If you need to add a new environment via an agent, you simply deploy the agent on that host and in the Portainer UI add the new environment pointing to the IP of that new environment/host. Make sure the agent run command uses |
Beta Was this translation helpful? Give feedback.
-
Hi Nick, and thanks for taking the time to reach out. Normally this wouldn't be any kind of problem, but I'm currently trying to install the portainer agent on the same docker instance that the portainer server is running on. I only have the one homelab, so I can't separate the portainer server into a different docker instance. If I try to add the portainer agent as a new environment on the same instance, I would have to create an entirely different environment that points to the same place as the local docker environment. The steps I tried to take:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ask a Question!
I currently have docker setup in a homelab system, and have been using it well for a few years. I recently added a GPU to this lab to start doing some research with it, but want to be able to allow access to the GPU for a container container a jupyter server so that I can use the GPU inside a jupyter notebook. I am trying to enable access to the GPU, but I see in the portainer UI that I can only do that by allowing host management through portainer agent. The agent container can be started up easily enough, but I can't specify localhost or the unix socket in the new environment, and I can't delete my default local environment and replace it with one that points to the agent. How can I proceed? The docs seem for this seem to be leading me in a loop.
I'm using Ubuntu 24.04, Docker 28.3.3, Portainer 2.27.9 LTS, and Portainer Agent 2.22.0
Beta Was this translation helpful? Give feedback.
All reactions