Install Portainer Agent on Docker Standalone
Portainer uses the Portainer Agent container to communicate with the Portainer Server instance and provide access to the node's resources. This document will outline how to install the Portainer Agent on your node and how to connect to it from your Portainer Server instance. If you do not have a working Portainer Server instance yet, please refer to the Portainer Server installation guide first.
In addition to the generic requirements for Docker Standalone environments, you will need:
9001accessible on this machine from the Portainer Server instance. If this is not available, we recommend using the Edge Agent instead.
- If you are running Windows on your node, either:
- Windows Subsystem for Linux (WSL) installed and a Linux distribution selected. For a new installation we recommend WSL2.
- Windows Container Services (WCS) configured and running.
The Portainer Agent installation instructions also make the following additional assumptions about your environment:
- You are accessing Docker via Unix sockets (or a named pipe when using WCS). The Portainer Agent does not support connecting to the Docker engine via TCP.
- If running Linux, SELinux is disabled on the machine running Docker. If you require SELinux, you will need to pass the
--privilegedflag to Docker when deploying Portainer.
- You have not set a custom
AGENT_SECRETon your Portainer Server instance. If you have, you will need to provide that secret to your agent when deploying with:
From the menu select Environments then click Add environment.
Next, select Docker Standalone as the environment type then click Start Wizard. Select the Agent option, then your environment type. Copy the command for your environment type and run it on your Docker Standalone instance. For example, if you are deploying on a Linux machine or a Windows machine with WSL installed, use the Linux & Windows WSL command. If you are deploying on a Windows machine with WCS, use the Windows WCS command.
Once the Agent has been deployed, enter the environment details using the table below as a guide:
Give the environment a descriptive name.
Enter the DNS name or IP address to connect to the Portainer Agent along with the port (the default port is
GPU configuration has been moved to Host Setup and can be configured once the environment has been set up.
When you're ready, click Connect. If you have other environments to configure click Next to proceed, otherwise click Close to return to the list of environments.