Portainer container setup
Introduction
Portainer CE empowers you to efficiently manage all your orchestrator resources, including containers, images, volumes, and networks. Effortlessly deploy and efficiently manage containers with the toolkit and graphical user interface.
Setup
-
Create the folders needed by the container
Run the following commands inside your home folder:
-
Generate an encrypted password (needed once)
Apache2-utils
is required, make sure this package is installed and then run the following command:Instructions:
- Required Replace
<password>
with your password
Save the result of the
htpasswd
command. - Required Replace
-
Create the script needed to run the container
Save the following script as
portainer_run.sh
:Instructions:
- Optional Replace
docker
withpodman
if needed - Required Replace port number
8000
or9443
(on the left side of:
) with a port number that is available if needed. - Optional Replace
$PWD/data
with the location of your data if needed. This can be a fileserver mount - Required Replace
Europe/Amsterdam
with your own timezone - Optional Remove
--no-analytics
if you want to enable analytics - Required Replace
<password>
with the enrypted password you generated withhtpasswd
- Optional Replace
-
Run the script to create the container
Run the following command:
The image
portainer/portainer-ce
is automatically pulled and the container is created. By default, Portainer generates and uses a self-signed SSL certificate to secure port 9443. -
Check the results
If needed you can check if the container is running properly.
Now you can log into Portainer with
admin
and the password used before by opening a web browser and going to:https://localhost:9443
. Replace localhost with the relevant IP address or FQDN if needed, and adjust the port if you changed it earlier.The Environment Wizard will automatically launch and will help get you started with Portainer.
No comments found for this note.
Join the discussion for this note on Github. Comments appear on this page instantly.