If you accidentally enabled Force HTTPS only and can't access Portainer anymore, here's how to fix it.
If you haven't tried it already, try accessing Portainer on Port 9443. If you enabled Force HTTPS only, Portainer will stop listening to Port 9000.
https://<your-ip>:9443
If that didn't work, use Option 2.
To access Portainer again, stop it's container using docker stop <container-id>.
Now add the --http-enabled flag to your docker run command. Make sure to remove the --http-disabled flag first.
Your command should look something like this now:
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 portainer-data:/data \
portainer/portainer-ce:2.11.1 \
--http-enabled
You should now be able to access Portainer again.