TorizonCore Builder was not working and wouldn’t pull due to “linux/arm64/v8” - not sure how that was detected. This is frustrating, because I know I’ve used the TorizonCore builder before.
I’m on my host PC, using WSL2.
~/tcbdir$ source tcb-env-setup.sh
Warning: If you intend to use torizoncore-builder as a server (listening to ports), then you should pass extra parameters to "docker run" (via the -- switch).
TorizonCore Builder is not installed. Pulling the latest version from Docker Hub...
Setting up TorizonCore Builder with version 3.
Pulling TorizonCore Builder...
3: Pulling from torizon/torizoncore-builder
no matching manifest for linux/arm64/v8 in the manifest list entries
I was using VS code, connected to WSL remotely, and tried to pull from there, so it wouldn’t work. However, if I use the command prompt, outside of VS code, it works just fine.
~/tcbdir$ source tcb-env-setup.sh
Warning: If you intend to use torizoncore-builder as a server (listening to ports), then you should pass extra parameters to "docker run" (via the -- switch).
You may have an outdated version installed. Would you like to check for updates online? [y/n] y
Setting up TorizonCore Builder with version 3.
Pulling TorizonCore Builder...
3: Pulling from torizon/torizoncore-builder
Digest: sha256:0ede18c22ea1cdc8b679064a024db3c744b9b5bcef27c5334bc6b37fcbc12e47
Status: Image is up to date for torizon/torizoncore-builder:3
docker.io/torizon/torizoncore-builder:3
Done!
Setup complete! TorizonCore Builder is now ready to use.
TorizonCore Builder internal status and image customizations will be stored in Docker volume named 'storage'.
********************
Important: When you run TorizonCore Builder, the tool can only access the files inside the current working directory. Files and directories outside of the current working directory, or links to files and directories outside of the current working directory, won't be visible to TorizonCore Builder. So please make sure that, when running TorizonCore Builder, all files and directories passed as parameters are within the current working directory.
Your current working directory is: /home/srzm/tcbdir
********************
For more information, run 'torizoncore-builder -h' or go to https://developer.toradex.com/knowledge-base/torizoncore-builder-tool
Thought I should post it out here in case others have same issue.
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
It seems you’re encountering an issue with pulling the TorizonCore Builder tool in VS Code due to an architecture mismatch error (“no matching manifest for linux/arm64/v8”). This discrepancy between VS Code and the command prompt is likely due to differences in Docker configuration.
Here are some steps to help resolve this:
Check Docker Architecture Settings: Ensure that Docker in VS Code is configured to use the correct architecture. This can be done by reviewing the Docker settings in VS Code to match your host system’s architecture.
Verify WSL2 Configuration: Make sure your WSL2 environment is properly set up to work with Docker. Sometimes, VS Code might have different environment variables or settings that affect Docker’s behavior.
Docker Context in VS Code: Confirm that the Docker context in VS Code is set to the correct WSL2 instance. This can be checked in the Docker extension settings within VS Code.
Update VS Code and Extensions: Ensure that both VS Code and the Docker extension are up to date, as updates can resolve compatibility issues.
Compare Environment Variables: Look for any differences in environment variables and Docker settings between your command prompt and VS Code that might be causing the issue.
By following these steps, you should be able to align the Docker behavior in VS Code with that of the command prompt, resolving the architecture mismatch error.
I hope this helps! If you have any more questions, feel free to ask.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
This doesn’t seem like a bug related to TorizonCore Builder specifically. It’s Docker that is doing the pulling of the TorizonCore Builder container image. For whatever reason in the first case Docker thinks it’s on an arm64-based system and is trying to pull that architecture, which we don’t have an arm64-based container image for this tool. The question then is, why does Docker think it’s an arm64-based system in your first case?
Here’s some tests to try:
In the same environment as your first case could you try running docker info and provide the output.
If you try to docker pull some other container image, does it also try to get the arm64 version?
Could you share the environment variables set if any.
It would appear you are executing Docker commands in the context of the Toradex module and not your host PC.
You, probably have the DOCKER_HOST environment variable set due to VSCode. Check if this variable is set, and if so unset it when running any Docker based operation. This is basically the same issue as in this other thread: Docker info Architecture in the vscode terminal
I have the tcbdir open in the explorer, so there’s not really a docker open other than the torizoncore builder, and that happens when I source tcb-env-setup.sh…
I even looked in the settings.json under .vscode folder, and unset the DOCKER_HOST
You must have DOCKER_HOST set still, or something similar. There’s no way docker would just randomly decide to execute TorizonCore Builder on the Toradex module without reason. By default docker executes on the host machine unless something tells it not to. The most common reason would be that DOCKER_HOST is set in your environment somewhere, somehow.
In this terminal where you are seeing this behavior what is the output of printenv?