To install Portainer on Linux / Debian, you can use the following steps:
- Download the Portainer image from the Docker Hub using the command:
docker pull portainer/portainer
- Start a Portainer container using the command:
docker run -d -p 9443:9443 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
- Access the Portainer Web UI by navigating to http://localhost:9443 in a web browser.
Note: The above command assumes that you are running the Docker daemon on the same host where you are running the Portainer container, and that you have the Docker socket bound to /var/run/docker.sock. If you have any other configuration, you may need to adjust the command accordingly.
Leave a Reply