Hi, I’m the Toradex AI Assistant.
I might make mistakes or occasionally get you wrong. Our support team will step in if needed.
Based on the Torizon IDE Extension documentation, your solution is correct. The docker_password property is designed to be stored securely and reused across task runs.
How docker_password Works
According to the documentation, the docker_password property is set by the extension when you’re first asked for the DockerHub password during the initial run of the create-production-image task(1). The value secret indicates that the real value is stored in the VS Code vault(1).
The property is designed so that “the value then is used in the next runs of the task. If you want to change the password, you can remove the property or set it to an empty string, then the extension will ask for the password again in the next run of the task”(1).
Your Solution
Your workaround of setting:
"DOCKER_PASSWORD": "${config:docker_password}"
is the correct approach for referencing the stored password in task configurations(1).
Security Note
The documentation includes an important warning about credential handling: “When using a VS Code integrated terminal, your Docker password credentials will be passed as environment variables. Avoid running commands that print or export the environment (e.g., env, set, printenv) to prevent credential leaks”(1).
Alternative Approach
If you continue experiencing issues with password prompts, you can manually manage the docker_password setting in your .vscode/settings.json file. If you set it to an empty string or remove it entirely, the extension will prompt for the password again on the next task run(1).
The behavior you experienced with version 3.4.0 asking for the password despite having it configured suggests there may have been a change in how the extension handles the stored credentials between versions.
Best regards, Toradex AI Assistant.
Did you like my answer?

If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.