VersionChooser: Allow login for docker daemon by version chooser interface #3109
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.
Allows users to perform a Docker login to the default Docker registry or custom registries using their Docker username and password or a Personal Access Token (PAT).
Effectively allows for the following:
docker login
command..docker/config.json
for both the normal user and the root user (if specified).To access users must be in
![image](https://private-user-images.githubusercontent.com/58235456/407442728-4d069254-b357-4910-8183-c9de7f1bca93.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODQyMjEsIm5iZiI6MTczOTU4MzkyMSwicGF0aCI6Ii81ODIzNTQ1Ni80MDc0NDI3MjgtNGQwNjkyNTQtYjM1Ny00OTEwLTgxODMtYzlkZTdmMWJjYTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAxNDUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2MDJkMzBmZjgwYzRkMDM2ZWM3MWM4NDFhYTM3OWZhYmVmYjU4NWZmNjgxNjc4M2ZkYTMzZTRkZjhlN2IyYjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.e5cAQxgNcnxCVjbiCeyAAiQKfNLxU1bEJ17vtLRNnvM)
pirate mode
on the version chooser page:By default, the dialog logs in using only the normal Raspberry Pi user (not root) and the default Docker registry (
https://index.docker.io/v1/
).If needed, users can:
sudo docker
commands by enabling the Login as Root User switch.Connected accounts can be seen at the accounts tab. Ones with the
shield
icon means that the credentials are valid forsudo docker
commands.Validation:
NOTE: This PR does not includes the on login authentication check, and does not allows users to test their credentials to check if they still valid. A following PR will add the check, probably matching the auth endpoint docs.