Add a Docker Standalone environment

When connecting a Docker Standalone host to Portainer, there are two methods you can use. You can either connect directly to the Docker API via TCP, or you can install the Portainer Agent on the Docker Standalone host and connect via the agent.

Connecting via the Docker API

Before you begin, you will need to ensure that your Docker instance is configured to admit remote connections. To learn how to do this, refer to Docker's own documentation. Once Docker is configured, you will be able to connect either with or without TLS.

From the menu select Environments then click Add environment.

Next, select Docker Standalone as the environment type then click Start Wizard. Select the API option and your platform, then enter the environment details using the table below as a guide:

Portainer expects TLS certificates and keys to be in PEM format.

As an optional step you can expand the More settings section to add GPUs to your environment, and to categorize the environment by adding it to a group or tagging it for better searchability.

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.

Connecting via the Portainer Agent

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.

Once the Agent has been deployed, enter the environment details using the table below as a guide:

As an optional step you can expand the More settings section to add GPUs to your environment, and to categorize the environment by adding it to a group or tagging it for better searchability.

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.

Last updated