Create-production-image in VS code docker login error

I am finally far enough along on a simple project to attempt to create a docker file and attempt to autorun it in an image that I managed to create.

while I can debug the C# project and even use run-container-torizon-release-arm64 to start it.

When I use create-production-image (which I think is the correct way) I get the following error:

    raise subprocess.CalledProcessError(rtn, spec.args, output=self.output)
subprocess.CalledProcessError: Command '['docker', 'login', '--username', 'powis', '--password-stdin', '']' returned non-zero exit status 1.
> TASK [docker-login] exited with error code [1] <

❌ Error: RuntimeError('Error running task: docker-login')
Error cause: Task execution error

I won’t lie I have been struggling picking up all the nuances to working with docker and torzion I am slowly getting there. This one has me puzzled on what to do. I can not find any hints as to what would cause this. So I may be missing something here.

Hi, I’m the Toradex AI Assistant.

I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.

Did you like my answer? :+1: :-1:


The error you’re encountering is related to Docker login authentication during the create-production-image task(1). The issue appears to be with the Docker registry configuration or credentials.

When you run the create-production-image task, it requires specific inputs for Docker registry authentication(1):

  • Docker registry: The container registry to which the task pushes the image. If empty, the task uses DockerHub(1)
  • Docker registry user login: The task uses the user login to set the image’s name, which will be userLogin/applicationName:dockerTag(1)
  • Docker registry password: the Docker registry password or token to use to push the image to the container registry. This will be stored as a secret in the VS Code vault(1)

Based on your error message showing 'docker', 'login', '--username', 'powis', '--password-stdin', '', it appears the registry URL is empty, which is causing the authentication failure.

Here are the steps to resolve this:

  1. Check your Docker registry settings: Ensure you have properly configured your Docker registry. If you’re using DockerHub, leave the Docker registry field empty during the task prompt(1)

  2. Verify Docker credentials: Make sure you have valid Docker Hub credentials or credentials for your chosen container registry(1)

  3. Check workspace settings: Some inputs are stored in .vscode/settings.json. To change input values, edit this file(1). For input details, see the Workspace Settings documentation(1)

  4. Docker login test: Before running the task, try manually logging into Docker from your terminal:

    docker login
    

    This will help verify your credentials work independently.

The create-production-image task performs these steps(1):

  1. Build a container image based on Dockerfile
  2. Push the container image to a container registry, such as DockerHub
  3. Create the docker-compose.prod.yml file

Once you resolve the authentication issue, the task should complete successfully and display a completion message in the VS Code terminal(1).

Hi @Lon

Did the create-production-image tasks prompt you for your docker hub credentials? It is supposed to and I just verified that it works. In the .vscode/settings.json file inside your project directory, you should see entries for docker_registry, docker_login, and docker_password with the magic string secret. In case you mistyped the password, removing them from settings.json and rerunning the task should prompt you again. I think you can also run the fill-pipeline-settings task; note that adds additional entries for CI/CD stuff but also will add the Docker registry credentials.

Also, please visit the extension marketplace and make sure the Torizon extension is up-to-date. For now I would use the release version and not the prerelease; there seem to be some issues in the prerelease.

Drew

@drew.tx it did not prompt me. i cleared them out and it did prompt me. and I used my PATs as the password and boom we have it sent.

I have not been able to get an updated version of the Torizon extension to work. I am on 3.0.4
when ever I update I am no longer able to build or debug. I have had issues with the newer docker extensions so I am still on 1.29.

I can try updating torizon extension again. but I am beyond frustrated with it at the moment.

OK. At least you have the login issue sorted.

As for the inability to debug with newer versions, can you elaborate what is happening? We should definitely try and fix that. I know the newer one has switch from PowerShell to XONSH so it may be some effort to migrate your project but it will ultimately be worth it.

Drew

The extension will not detect the torizon device and the new docker container tools will not see the registries. I am sure they are tied together. but I do not know how to trouble shoot this since I don’t see any errors anywhere. just can not see the device. as soon as I swap back to the older version. it will take off.

as for xohsh. I have no idea. this is our first attempt at linux and docker. so I won’t lie I am struggling.

@drew.tx I will add that while the extension doesn’t seem to find the device. if I use it to open a terminal it will do that.

Hi Lon,

The way the extension works is to scan your local subnet for any devices with an SSH port listening on port 22. Depending on your networking setup you may get better results by manually adding the devices by their IP address. We used to scan assuming a subnet mask of 255.255.255.0 which is very common for home networking setups but on some setups this would not find everything. Around October of last year, I see some chatter that this model was changed. I wonder if that corresponds to the version you are using?

I see the comcast.net domain in your screenshot above so I am guessing this is on your home consumer internet connection right? Do you know what the IP config and subnet settings are?

What I would suggest is to “Remove Device” on both of the devices listed, upgrade to the latest release version of the extension and then if scanning does not work, try to manually add the devices by IP address.

Drew

Drew Moseley
Toradex

hmm… well removing the added devices then updating didn’t help the scan. but adding the device manually seemed to work. I was able to set the device to default. containers appears to show my weston container on the device.

But now my debugging is broken. no other changes. but looks like a local registry issue of some kind. I am not fully understanding the containers registries yet. So I am not positive what could be different between the versions.

 *  Executing task: xonsh .conf/validate-deps-running.xsh 


⚠️ VALIDATING ENVIRONMENT

OS:         Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch:    x86_64
Under WSL:  Torizon
VS Code:
1.103.1
360a4e4fd251bfce169a4ddf857c7d25d1ad40da
x64

TOR Extension:  toradex.apollox-vscode@3.1.1

✅ Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "10.10.10.87" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/powis/PowisThreading/docker-compose.yml torizon@10.10.10.87:~/ 

Warning: Permanently added '10.10.10.87' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST=10.10.10.87:2375 docker image prune -f --filter=dangling=true 

Total reclaimed space: 0B
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: docker compose -p torizon stop powisthreading powisthreading-debug && docker compose -p torizon rm -f powisthreading powisthreading-debug 

No stopped containers
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: dotnet publish /home/powis/PowisThreading/PowisThreading.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Debug -r linux-arm64 --no-self-contained 

  Determining projects to restore...
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.CSharp (= 3.8.0) but version Microsoft.CodeAnalysis.CSharp 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Scripting.Common 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
  All projects are up-to-date for restore.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.CSharp (= 3.8.0) but version Microsoft.CodeAnalysis.CSharp 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Scripting.Common 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
  PowisThreading -> /home/powis/PowisThreading/bin/Debug/net8.0/linux-arm64/PowisThreading.dll
  PowisThreading -> /home/powis/PowisThreading/bin/Debug/net8.0/linux-arm64/publish/
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh /home/powis/PowisThreading/.conf/torizon-packages.xsh arm64 

Applying torizonPackages.json: 
Applying to Dockerfile.debug ...
✅ Dockerfile.debug
Applying to Dockerfile ...
✅ Dockerfile
torizonPackages.json applied
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=2223 --build-arg GPU=-imx8 powisthreading-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Compose can now delegate builds to bake for better performance.
 To do so, set COMPOSE_BAKE=true.
[+] Building 0.6s (16/16) FINISHED                                                                                                                                       docker:default
 => [powisthreading-debug internal] load build definition from Dockerfile.debug                                                                                                    0.0s
 => => transferring dockerfile: 3.19kB                                                                                                                                             0.0s
 => [powisthreading-debug internal] load metadata for docker.io/torizon/dotnet8-gtk3-imx8:4                                                                                        0.5s
 => [powisthreading-debug internal] load metadata for docker.io/torizon/dotnet8-debug:4                                                                                            0.5s
 => [powisthreading-debug auth] torizon/dotnet8-gtk3-imx8:pull token for registry-1.docker.io                                                                                      0.0s
 => [powisthreading-debug auth] torizon/dotnet8-debug:pull token for registry-1.docker.io                                                                                          0.0s
 => [powisthreading-debug internal] load .dockerignore                                                                                                                             0.0s
 => => transferring context: 56B                                                                                                                                                   0.0s
 => [powisthreading-debug debugger 1/1] FROM docker.io/torizon/dotnet8-debug:4@sha256:95781de2a3e32f5f26de9acef42db72ebdb415631e24e8c1929356c5278388a6                             0.0s
 => [powisthreading-debug debug 1/7] FROM docker.io/torizon/dotnet8-gtk3-imx8:4@sha256:89e8b6f33fc1517259a74193c6608eb2bb65886c9bb4143edaeea3b745862378                            0.0s
 => CACHED [powisthreading-debug debug 2/7] COPY --from=debugger /vsdbg /vsdbg                                                                                                     0.0s
 => CACHED [powisthreading-debug debug 3/7] RUN apt-get -q -y update &&         if [ "-imx8" = "-vivante" ] || [ "-imx8" = "-imx8" ]; then             apt-get -q -y install       0.0s
 => CACHED [powisthreading-debug debug 4/7] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rsync     file     libice6     libsm6     li  0.0s
 => CACHED [powisthreading-debug debug 5/7] RUN apt-get -q -y update &&     apt-get -q -y install     &&     apt-get clean && apt-get autoremove &&     rm -rf /var/lib/apt/lists  0.0s
 => CACHED [powisthreading-debug debug 6/7] RUN mkdir /var/run/sshd &&     sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g'         -i /etc/pam.d/  0.0s
 => CACHED [powisthreading-debug debug 7/7] RUN rm -r /etc/ssh/ssh*key &&     dpkg-reconfigure openssh-server                                                                      0.0s
 => [powisthreading-debug] exporting to image                                                                                                                                      0.0s
 => => exporting layers                                                                                                                                                            0.0s
 => => writing image sha256:6c9fd7bd4f09af66817b3d8accf74e3a64f671f95a8b50476b9c6f2a4fecb1e9                                                                                       0.0s
 => => naming to localhost:5002/powisthreading:arm64                                                                                                                               0.0s
 => [powisthreading-debug] resolving provenance for metadata file                                                                                                                  0.0s
[+] Building 1/1
 ✔ powisthreading-debug  Built                                                                                                                                                     0.0s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose push powisthreading-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pushing 22/22
 ✔ Pushing localhost:5002/powisthreading:arm64: 91bf7b0b55ad Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 1d05088927ea Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 4f21e142c23d Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: f6885e37c236 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 4a5272dab08a Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 82127157ad8c Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: a09b990c3e73 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: afe05259d95b Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 1f7ce0d62bea Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 5f70bf18a086 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 7430358deec4 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 6e9d4352c96c Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 18b987b6218e Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 60f21bc238e9 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 83c307f22a83 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: b87cda872d71 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 3bab90f05934 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 2ede65182edd Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 3e1c8626ea37 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 5090a66e460d Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: dad7ee81a740 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: dd97e58b4e81 Layer already exists                                                                                                  0.0s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST=10.10.10.87:2375 LOCAL_REGISTRY=192.168.63.2 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull powisthreading-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pulling 1/1
 ! powisthreading-debug Warning Get "http://192.168.63.2:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout excee...                              30.0s 
WARNING: Some service image(s) must be built from source by running:
    docker compose build powisthreading-debug
1 error occurred:
        * Error response from daemon: Get "http://192.168.63.2:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST=10.10.10.87:2375 LOCAL_REGISTRY=192.168.63.2 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull powisthreading-debug'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

OK. I think what’s happening here is that your board is having difficulty attaching to the Docker registry that we run on your dev machine. What host OS are you running there? Do you know if you have any firewalling or other IT network monitoring that may be interfering?

Basically, the IDE extension launches a container registry locally with the built versions of your containers and then the board pulls them from there. If there is a connection blockage of some kind then it can interfere.

That said, our team is currently implementing a new way to deliver the containers to the board in debug mode so that this registry is not needed. If this is indeed the problem you are having then switching to the prerelease version of the extension may work for you. If you are able to try that please do let me know how it goes.

Drew

currently windows 11 wsl2, on the device 7.3.0+build.18. So my question would be why would my device work fine with the older versions of the extension and docker vs the new? As soon as I load the older versions it will work. no work network monitoring and I have tried with and with out firewall on. Oh your comment about comcast earlier. that is our business connection

results of pre-release version:

 *  Executing task: xonsh .conf/validate-deps-running.xsh 


⚠️ VALIDATING ENVIRONMENT

OS:         Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch:    x86_64
Under WSL:  Torizon
VS Code:
1.103.1
360a4e4fd251bfce169a4ddf857c7d25d1ad40da
x64

TOR Extension:  toradex.apollox-vscode@3.1.113

✅ Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "10.10.10.87" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/powis/PowisThreading/docker-compose.yml torizon@10.10.10.87:~/ 

ssh: connect to host 10.10.10.87 port 22: Connection timed out
scp: Connection closed

 *  The terminal process "sshpass '-p', 'torizon', 'scp', '-P', '22', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '/home/powis/PowisThreading/docker-compose.yml', 'torizon@10.10.10.87:~/'" terminated with exit code: 255. 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh .conf/validate-deps-running.xsh 


⚠️ VALIDATING ENVIRONMENT

OS:         Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch:    x86_64
Under WSL:  Torizon
VS Code:
1.103.1
360a4e4fd251bfce169a4ddf857c7d25d1ad40da
x64

TOR Extension:  toradex.apollox-vscode@3.1.113

✅ Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "10.10.10.87" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/powis/PowisThreading/docker-compose.yml torizon@10.10.10.87:~/ 

Warning: Permanently added '10.10.10.87' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST=10.10.10.87:2375 docker image prune -f --filter=dangling=true 

Total reclaimed space: 0B
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: docker compose -p torizon stop powisthreading powisthreading-debug && docker compose -p torizon rm -f powisthreading powisthreading-debug 

No stopped containers
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: dotnet publish /home/powis/PowisThreading/PowisThreading.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Debug -r linux-arm64 --no-self-contained 

  Determining projects to restore...
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.CSharp (= 3.8.0) but version Microsoft.CodeAnalysis.CSharp 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Scripting.Common 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
  Restored /home/powis/PowisThreading/PowisThreading.csproj (in 416 ms).
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 requires Microsoft.CodeAnalysis.CSharp (= 3.8.0) but version Microsoft.CodeAnalysis.CSharp 4.14.0 was resolved.
/home/powis/PowisThreading/PowisThreading.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Scripting.Common 3.8.0 requires Microsoft.CodeAnalysis.Common (= 3.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
  PowisThreading -> /home/powis/PowisThreading/bin/Debug/net8.0/linux-arm64/PowisThreading.dll
  PowisThreading -> /home/powis/PowisThreading/bin/Debug/net8.0/linux-arm64/publish/
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh /home/powis/PowisThreading/.conf/torizon-packages.xsh arm64 

Applying torizonPackages.json: 
Applying to Dockerfile.debug ...
✅ Dockerfile.debug
Applying to Dockerfile ...
✅ Dockerfile
torizonPackages.json applied
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=2223 --build-arg GPU=-imx8 powisthreading-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Compose can now delegate builds to bake for better performance.
 To do so, set COMPOSE_BAKE=true.
[+] Building 0.7s (16/16) FINISHED                                                                                                                                       docker:default
 => [powisthreading-debug internal] load build definition from Dockerfile.debug                                                                                                    0.0s
 => => transferring dockerfile: 3.19kB                                                                                                                                             0.0s
 => [powisthreading-debug internal] load metadata for docker.io/torizon/dotnet8-debug:4                                                                                            0.5s
 => [powisthreading-debug internal] load metadata for docker.io/torizon/dotnet8-gtk3-imx8:4                                                                                        0.5s
 => [powisthreading-debug auth] torizon/dotnet8-debug:pull token for registry-1.docker.io                                                                                          0.0s
 => [powisthreading-debug auth] torizon/dotnet8-gtk3-imx8:pull token for registry-1.docker.io                                                                                      0.0s
 => [powisthreading-debug internal] load .dockerignore                                                                                                                             0.0s
 => => transferring context: 56B                                                                                                                                                   0.0s
 => [powisthreading-debug debugger 1/1] FROM docker.io/torizon/dotnet8-debug:4@sha256:95781de2a3e32f5f26de9acef42db72ebdb415631e24e8c1929356c5278388a6                             0.0s
 => [powisthreading-debug debug 1/7] FROM docker.io/torizon/dotnet8-gtk3-imx8:4@sha256:89e8b6f33fc1517259a74193c6608eb2bb65886c9bb4143edaeea3b745862378                            0.0s
 => CACHED [powisthreading-debug debug 2/7] COPY --from=debugger /vsdbg /vsdbg                                                                                                     0.0s
 => CACHED [powisthreading-debug debug 3/7] RUN apt-get -q -y update &&         if [ "-imx8" = "-vivante" ] || [ "-imx8" = "-imx8" ]; then             apt-get -q -y install       0.0s
 => CACHED [powisthreading-debug debug 4/7] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rsync     file     libice6     libsm6     li  0.0s
 => CACHED [powisthreading-debug debug 5/7] RUN apt-get -q -y update &&     apt-get -q -y install     &&     apt-get clean && apt-get autoremove &&     rm -rf /var/lib/apt/lists  0.0s
 => CACHED [powisthreading-debug debug 6/7] RUN mkdir /var/run/sshd &&     sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g'         -i /etc/pam.d/  0.0s
 => CACHED [powisthreading-debug debug 7/7] RUN rm -r /etc/ssh/ssh*key &&     dpkg-reconfigure openssh-server                                                                      0.0s
 => [powisthreading-debug] exporting to image                                                                                                                                      0.0s
 => => exporting layers                                                                                                                                                            0.0s
 => => writing image sha256:6c9fd7bd4f09af66817b3d8accf74e3a64f671f95a8b50476b9c6f2a4fecb1e9                                                                                       0.0s
 => => naming to localhost:5002/powisthreading:arm64                                                                                                                               0.0s
 => [powisthreading-debug] resolving provenance for metadata file                                                                                                                  0.0s
[+] Building 1/1
 ✔ powisthreading-debug  Built                                                                                                                                                     0.0s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose push powisthreading-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pushing 22/22
 ✔ Pushing localhost:5002/powisthreading:arm64: 91bf7b0b55ad Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 1d05088927ea Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 4f21e142c23d Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: f6885e37c236 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 4a5272dab08a Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 82127157ad8c Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: a09b990c3e73 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: afe05259d95b Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 1f7ce0d62bea Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 5f70bf18a086 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 7430358deec4 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 6e9d4352c96c Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 18b987b6218e Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 60f21bc238e9 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 83c307f22a83 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: b87cda872d71 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 3bab90f05934 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 2ede65182edd Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 3e1c8626ea37 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: 5090a66e460d Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: dad7ee81a740 Layer already exists                                                                                                  0.0s 
 ✔ Pushing localhost:5002/powisthreading:arm64: dd97e58b4e81 Layer already exists                                                                                                  0.0s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST=10.10.10.87:2375 LOCAL_REGISTRY=192.168.63.2 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull powisthreading-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pulling 1/1
 ! powisthreading-debug Warning Get "http://192.168.63.2:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout excee...                              30.0s 
WARNING: Some service image(s) must be built from source by running:
    docker compose build powisthreading-debug
1 error occurred:
        * Error response from daemon: Get "http://192.168.63.2:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST=10.10.10.87:2375 LOCAL_REGISTRY=192.168.63.2 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull powisthreading-debug'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Hi Lon,

Perfectly valid question and one I don’t have an answer to at the moment. I do intend to check with the developers but they are further east than I am and already off for the weekend. Looks like it is basically the same issue so maybe there is some piece missing from the prerelease related to this feature. I’ll get with the developers next week and let you know what we think.

I’m not clear on which versions you are working with. You mentioned both 3.0.4 and 1.29. Can you clarify which version you have to use to get it to work so I can take a look at release notes and such?

torizon ide extension version 3.0.4. with docker extension 1.29.6.

combination works. basically right before docker became containers tools. I tried when you all made the change over to that. but have never been able to get anything to work past those versions. June 24th I have post started when docker became container tools. I back dated then and kept working until now. trying to keep moving forward with the project. now that I am to the point where I am attempting to integrate the container into and image to auto run on startup. I am stuck with what we have now.

Hi @Lon

In this case your device is still trying to connect to the build system to locate the registry. With the new feature I mentioned, the registry is actually running on the device so any failures connecting to that will use 127.0.0.1. What may be happening is you reused an existing project without migrating to the newer version.

What I suggest you do for troubleshooting is two-fold:

  1. Switch to use the dev branch of the templates.
  2. Start a brand new project using any application template.

This should give you a completely clean setup using the new logic that will help us determine if your issue was what I theorized above.

@Lon

Another question. Are you using the Docker Desktop or just the Docker Engine? We don’t officially support the Docker Desktop due to the commercial requirements and it may have issues.

I did hear from the team that starting with version 3.1.0 (the one after 3.0.4 which works for you) there is an updated nmap lib. It’s possible that is why the older one works for you and the newer one does not. Just a guess but maybe?

Docker Engine. I made the mistake with docker desktop when we first started evaluating Torizon.

should I try grabbing nmap lib with “sudo apt install nmap” ?

No. I think it’s a library that is used by the IDE and not something you need to install by hand. I think the test of a fresh template using the dev branch is a more interesting test.

I made the mistake of trying the prerelease version. yeah that didn’t work lots of errors about a works space.

so I set it it to the latest release version of the Torizon extension:

 *  Executing task: dotnet build /home/powis/newavaloniatest/newavaloniatest.csproj -c Debug 

  Determining projects to restore...
  Restored /home/powis/newavaloniatest/newavaloniatest.csproj (in 263 ms).
  newavaloniatest -> /home/powis/newavaloniatest/bin/Debug/net8.0/newavaloniatest.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.41
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh .conf/validate-deps-running.xsh 


⚠️ VALIDATING ENVIRONMENT

OS:         Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch:    x86_64
Under WSL:  Torizon
VS Code:
1.103.1
360a4e4fd251bfce169a4ddf857c7d25d1ad40da
x64

TOR Extension:  toradex.apollox-vscode@3.1.1

✅ Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "" ]] && true || false 


 *  The terminal process "bash '-c', '[[ ! -z "" ]] && true || false'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh .conf/validate-deps-running.xsh 


⚠️ VALIDATING ENVIRONMENT

OS:         Linux
OS Version: 5.15.167.4-microsoft-standard-WSL2
OS Arch:    x86_64
Under WSL:  Torizon
VS Code:
1.103.1
360a4e4fd251bfce169a4ddf857c7d25d1ad40da
x64

TOR Extension:  toradex.apollox-vscode@3.1.1

✅ Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "10.10.10.87" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/powis/newavaloniatest/docker-compose.yml torizon@10.10.10.87:~/ 

Warning: Permanently added '10.10.10.87' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: /home/powis/newavaloniatest/.conf/remove-dangling-images.xsh 10.10.10.87:2375 

Waiting for prune lock on host 10.10.10.87:2375
Pruning dangling images on 10.10.10.87:2375
Total reclaimed space: 0B
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: docker compose -p torizon stop newavaloniatest newavaloniatest-debug && docker compose -p torizon rm -f newavaloniatest newavaloniatest-debug 

No stopped containers
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: dotnet publish /home/powis/newavaloniatest/newavaloniatest.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Debug -r linux-arm64 --no-self-contained 

  Determining projects to restore...
  Restored /home/powis/newavaloniatest/newavaloniatest.csproj (in 346 ms).
  newavaloniatest -> /home/powis/newavaloniatest/bin/Debug/net8.0/linux-arm64/newavaloniatest.dll
  newavaloniatest -> /home/powis/newavaloniatest/bin/Debug/net8.0/linux-arm64/publish/
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh /home/powis/newavaloniatest/.conf/torizon-packages.xsh arm64 

Applying torizonPackages.json: 
Applying to Dockerfile.debug ...
✅ Dockerfile.debug
Applying to Dockerfile ...
✅ Dockerfile
torizonPackages.json applied
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=2223 --build-arg GPU=-imx8 newavaloniatest-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Compose can now delegate builds to bake for better performance.
 To do so, set COMPOSE_BAKE=true.
[+] Building 0.8s (16/16) FINISHED                                                                                            docker:default
 => [newavaloniatest-debug internal] load build definition from Dockerfile.debug                                                        0.0s
 => => transferring dockerfile: 3.19kB                                                                                                  0.0s
 => [newavaloniatest-debug internal] load metadata for docker.io/torizon/dotnet8-gtk3-imx8:4                                            0.6s
 => [newavaloniatest-debug internal] load metadata for docker.io/torizon/dotnet8-debug:4                                                0.5s
 => [newavaloniatest-debug auth] torizon/dotnet8-gtk3-imx8:pull token for registry-1.docker.io                                          0.0s
 => [newavaloniatest-debug auth] torizon/dotnet8-debug:pull token for registry-1.docker.io                                              0.0s
 => [newavaloniatest-debug internal] load .dockerignore                                                                                 0.0s
 => => transferring context: 56B                                                                                                        0.0s
 => [newavaloniatest-debug debugger 1/1] FROM docker.io/torizon/dotnet8-debug:4@sha256:95781de2a3e32f5f26de9acef42db72ebdb415631e24e8c  0.0s
 => [newavaloniatest-debug debug 1/7] FROM docker.io/torizon/dotnet8-gtk3-imx8:4@sha256:89e8b6f33fc1517259a74193c6608eb2bb65886c9bb414  0.0s
 => CACHED [newavaloniatest-debug debug 2/7] COPY --from=debugger /vsdbg /vsdbg                                                         0.0s
 => CACHED [newavaloniatest-debug debug 3/7] RUN apt-get -q -y update &&         if [ "-imx8" = "-vivante" ] || [ "-imx8" = "-imx8" ];  0.0s
 => CACHED [newavaloniatest-debug debug 4/7] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server       0.0s
 => CACHED [newavaloniatest-debug debug 5/7] RUN apt-get -q -y update &&     apt-get -q -y install     &&     apt-get clean && apt-get  0.0s
 => CACHED [newavaloniatest-debug debug 6/7] RUN mkdir /var/run/sshd &&     sed 's@session\s*required\s*pam_loginuid.so@session option  0.0s
 => CACHED [newavaloniatest-debug debug 7/7] RUN rm -r /etc/ssh/ssh*key &&     dpkg-reconfigure openssh-server                          0.0s
 => [newavaloniatest-debug] exporting to image                                                                                          0.0s
 => => exporting layers                                                                                                                 0.0s
 => => writing image sha256:7bdc20d9d0009bb54544dfee9970bb1ce7d06f304fe08cb045fdedd9134d194b                                            0.0s
 => => naming to localhost:5002/newavaloniatest:arm64                                                                                   0.0s
 => [newavaloniatest-debug] resolving provenance for metadata file                                                                      0.0s
[+] Building 1/1
 ✔ newavaloniatest-debug  Built                                                                                                         0.0s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose push newavaloniatest-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pushing 0/22
 ⠋ Pushing localhost:5002/newavaloniatest:arm64: 91bf7b0b55ad Mounted from powisthreading                                               0.1s 
[+] Pushing 0/22host:5002/newavaloniatest:arm64: 1d05088927ea Mounted from powisthreading                                               0.1s 
 ⠙ Pushing localhost:5002/newavaloniatest:arm64: 91bf7b0b55ad Mounted from powisthreading                                               0.2s 
[+] Pushing 0/22host:5002/newavaloniatest:arm64: 1d05088927ea Mounted from powisthreading                                               0.2s 
 ⠹ Pushing localhost:5002/newavaloniatest:arm64: 91bf7b0b55ad Mounted from powisthreading                                               0.3s 
[+] Pushing 0/22host:5002/newavaloniatest:arm64: 1d05088927ea Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 91bf7b0b55ad Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 1d05088927ea Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 4f21e142c23d Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: f6885e37c236 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 4a5272dab08a Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 82127157ad8c Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: a09b990c3e73 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: afe05259d95b Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 1f7ce0d62bea Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 5f70bf18a086 Mounted from powismvvm                                                    0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 7430358deec4 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 6e9d4352c96c Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 18b987b6218e Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 60f21bc238e9 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 83c307f22a83 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: b87cda872d71 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 3bab90f05934 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 2ede65182edd Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 3e1c8626ea37 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: 5090a66e460d Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: dad7ee81a740 Mounted from powisthreading                                               0.3s 
 ⠸ Pushing localhost:5002/newavaloniatest:arm64: dd97e58b4e81 Mounted from powisthreading                                               0.3s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST=10.10.10.87:2375 LOCAL_REGISTRY=192.168.63.2 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull newavaloniatest-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pulling 1/1
 ! newavaloniatest-debug Warning Get "http://192.168.63.2:5002/v2/": net/http: request canceled while...                               30.0s 
WARNING: Some service image(s) must be built from source by running:
    docker compose build newavaloniatest-debug
1 error occurred:
        * Error response from daemon: Get "http://192.168.63.2:5002/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



 *  The terminal process "/usr/bin/bash '-c', 'DOCKER_HOST=10.10.10.87:2375 LOCAL_REGISTRY=192.168.63.2 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2223 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull newavaloniatest-debug'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

When you used the prerelease did you create a new project? The model has changed; now you create a workspace and then add projects/templates under that to support multi-containers.

With the release version, did you do the “try-update-template” task or start with a fresh template?

I’ll try again with the Avalonia template in case it is somehow specific to that.

pre release I did a new project. the create workspace through me off. but it errored out on the creation so I switched to release. the error I sent was for a new default avalonia template. I did not see the try-update-template option.