Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Portainer manages the Docker containers on the server. This script wraps the TrueNAS community app
portainer.How it installs
There are no install questions. A v6 hook named "Set up Portainer" runs after install and asks for an admin username and password. It creates the admin and connects the local Docker environment, so the user lands on a working dashboard.
Two Portainer behaviours make the hook necessary:
api/http/security/setuptoken). The script setsPORTAINER_NO_SETUP_TOKEN=true, and the hook creates the admin seconds after start. If the hook fails, Portainer's own create-admin page still works with no token.api/http/server.go:143). The hook creates the admin first. If the timeout has already passed, the hook says to restart Portainer and run setup again from the card.Other choices:
portainer/data, owned byapps(the app runs as 568) and snapshotted before updates.Testing
bun _lib/validate.tspasses with 0 errors and 0 warnings. The hook passestsc --noEmitin strict mode against_lib/hook_context.ts.localenvironment onunix:///var/run/docker.sock. The admin signed in, a wrong password was refused, and Portainer listed every container on the server.Something for you to decide
Portainer can see, stop and remove every container on the server, including your agent (
ix-hexos). Let me know if that's a problem for the catalog.