Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dietpi-Software Portainer HTTPS? #7009

Open
yuukiAme opened this issue Apr 8, 2024 · 3 comments
Open

Dietpi-Software Portainer HTTPS? #7009

yuukiAme opened this issue Apr 8, 2024 · 3 comments

Comments

@yuukiAme
Copy link

yuukiAme commented Apr 8, 2024

Hi,
I use Portainer with Docker and Docker-compose in DietPi.
I noticed that Portainer script install only use HTTP on 9002.
Which is why the browser threw an error when I uploaded a self-signed certificate and a private key.
Portainer became inaccesible after that.
So I had to reinstall with dietpi-software reinstall 185 but this will result in the same HTTP.
I already knew that so I tried the following commands with the help of Portainer Docs.


# list running containers
docker ps
# stop the running portainer container
docker stop portainer
# remove the running portainer container
docker rm portainer --force
# recreate the portainer container with ssl enabled
docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v ~/docker/portainer:/data portainer/portainer-ce

After that recreation command, I will have to setup Portainer fresh on HTTPS port 9443 again with new account and password.

My question is:

Why didn't DietPi easy script open HTTPS port like the Portainer docs?

Because if I run another dietpi-software reinstall 185 now, Portainer will go back to HTTP on port 9002 only. No HTTPS.

@yuukiAme
Copy link
Author

yuukiAme commented Apr 8, 2024

I checked the closed issue and found this comment. Not sure whether to discuss it in that thread or my thread.

@MichaIng
Copy link
Owner

When we enable HTTPS OOTB, we should also add a (self-signed) certificate OOTB. Can this be easily imported into the Portainer container/volume via command prompt/script?

@Joulinar
Copy link
Collaborator

https://docs.portainer.io/advanced/ssl#using-your-own-ssl-certificate-on-docker-standalone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants