Install Portainer BE with Docker on Windows Container Service
These installation instructions are for Portainer Business Edition (BE). For Portainer Community Edition (CE) refer to the CE install documentation.
Introduction
Portainer consists of two elements, the Portainer Server, and the Portainer Agent. Both elements run as lightweight Docker containers on a Docker engine. This document will help you install the Portainer Server container on your Windows server with Windows Containers. To add a new WCS environment to an existing Portainer Server installation, please refer to the Portainer Agent installation instructions.
To get started, you will need:
Administrator access on the machine that will host your Portainer Server instance
By default, Portainer Server will expose the UI over port
9443
and expose a TCP tunnel server over port8000
. The latter is optional and is only required if you plan to use the Edge compute features with Edge agents.A license key for Portainer Business Edition.
The installation instructions also make the following assumption about your environment:
Your environment meets our requirements. While Portainer may work with other configurations, it may require configuration changes or have limited functionality.
Preparation
To run Portainer Server in a Windows Server/Desktop Environment you need to create exceptions in the firewall. These can easily be added through PowerShell by running the following commands:
You will also need to install the Windows Container Host Service and install Docker:
Once this is complete you will need to restart your Windows server. After the restart completes, you're ready to install Portainer itself.
Deployment
First, create the volume that Portainer Server will use to store its database. Using PowerShell:
Then, download and install the Portainer Server container:
By default, Portainer generates and uses a self-signed SSL certificate to secure port 9443
. Alternatively you can provide your own SSL certificate during installation or via the Portainer UI after installation is complete.
If you see an error message similar to:
"\\.\pipe\dockerDesktopEngine" includes invalid characters for a local volume name
then you may not have Windows containers properly enabled. If you are using Docker Desktop, right click the icon in your tray and select Switch to Windows Containers.
If you require HTTP port 9000
open for legacy reasons, add the following to your docker run
command:
-p 9000:9000
Logging In
Now that the installation is complete, you can log into your Portainer Server instance by opening a web browser and going to:
Replace localhost
with the relevant IP address or FQDN if needed, and adjust the port if you changed it earlier.
You will be presented with the initial setup page for Portainer Server.
Last updated