Environments > Add environment
Environment type
Important notice

You can connect Portainer to a Docker environment via socket or via TCP. You can find more information about how to expose the Docker API over TCP in the Docker documentation.

When using the socket, ensure that you have started the Portainer container with the following Docker flag -v "/var/run/docker.sock:/var/run/docker.sock" (on Linux) or -v \.\pipe\docker_engine:\.\pipe\docker_engine (on Windows).

Information
Ensure that you have deployed the Portainer agent in your cluster first. Refer to the platform related command below to deploy it.

Note that the environment variable AGENT_SECRET will need to be set to {{ agentSecret }}. Please update the manifest that will be downloaded from the following script.

{{ deployCommands.kubeLoadBalancer }}

Note that the environment variable AGENT_SECRET will need to be set to {{ agentSecret }}. Please update the manifest that will be downloaded from the following script.

{{ deployCommands.kubeNodePort }}
{{ deployCommands.agentLinux(agentSecret) }} {{ deployCommands.agentWindows(agentSecret) }}
Copy command
Information

Allows you to create an environment that can be registered with an Edge agent. The Edge agent will initiate the communications with the Portainer instance. All the required information on how to connect an Edge agent to this environment will be available after environment creation.

You can read more about the Edge agent in the userguide available here.

Important notice

This will allow you to manage the Kubernetes environment where Portainer is running.

In order to manage a remote Kubernetes environment, please use the Agent or Edge agent options.

Information

This feature is experimental.

Connect to Microsoft Azure to manage Azure Container Instances (ACI).

Have a look at the Azure documentation to retrieve the credentials required below.

Environment details

This field is required.

This field is required.

This field is required.

This field is required.

This field is required.

This field is required.

This field is required.

Metadata
Actions