[Error response from daemon: No such container: registry] - 🤖 VS Code IDE Extension Issue Report (e24d6519f7a2f3f91c98419d4b859680)

OS: linux :: x64 :: WSL 2
Distro: Ubuntu 22.04.2 LTS
Extension activation logs:

 Activating Torizon IDE ...
 Telemetry is enabled
 Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://github.com/toradex/torizon-experimental-torizon-ide-v2-docs/blob/main/USAGE-DATA.md#opt-out
 Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
 Resolving host IP address ...
 Host IP address OK
 Docker installed OK
 Docker running OK
 Docker compose OK
 PowerShell OK
 git OK
 dig OK
 avahi-resolve OK
 nmap OK
 iputils-ping OK
 file OK
 sshpass OK
 net-tools OK
 Cloning project templates
 Project templates clone OK
 Checkout templates repo to dev OK
 Project templates updated
 Checking connected devices ...
 Scanning Torizon devices ...
 Configuring debug id_rsa ...
 Debug id_rsa OK
 Torizon IDE extension activated
 Checking host ip sanity ...
 Host ip is OK
 Device 192.168.1.115 set as Docker Host
 Debian bookworm packages list load OK
 ERROR :: pre-cleanup failed with exit code 1
 ERROR :: pre-cleanup failed with exit code 1
 ERROR :: pre-cleanup failed with exit code 1
 ERROR :: pre-cleanup failed with exit code 1

Tasks logs:

Container Runtime: docker
Run Arguments: -d -p 5002:5000 --restart=always registry:2
Container Name: registry
Error response from daemon: No such container: registry
Container does not exists. Starting ...
Unable to find image 'registry:2' locally
2: Pulling from library/registry
96526aa774ef: Pull complete 
834bccaa730c: Pull complete 
87a69098c0a9: Pull complete 
afc17120a9f7: Pull complete 
e5ac04f3acf5: Pull complete 
Digest: sha256:8a60daaa55ab0df4607c4d8625b96b97b06fd2e6ca8528275472963c4ae8afa0
Status: Downloaded newer image for registry:2
c4bc7fbe56312b52d17d277dec83068da9bd163ad18faf5f4c0be0f39938ba98
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: pwsh -nop .conf/validateDepsRunning.ps1 


⚠️ VALIDATING ENVIRONMENT


✅ Environment is valid!

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

 *  Executing task: bash -c [[ ! -z "192.168.1.115" ]] && 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: [ $(/bin/python3 -m pip --version | awk '{print $2}' | cut -d'.' -f1) -lt 23 ] && /bin/python3 -m pip install --upgrade pip || true 

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
Collecting pip
  Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 8.4 MB/s eta 0:00:00
Installing collected packages: pip
  WARNING: The scripts pip, pip3, pip3.10 and pip3.11 are installed in '/home/tobias/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-23.3.1
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: /bin/python3 -m pip install --break-system-packages -r requirements-debug.txt 

Defaulting to user installation because normal site-packages is not writeable
Collecting debugpy (from -r requirements-debug.txt (line 1))
  Downloading debugpy-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.0 kB)
Downloading debugpy-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 9.4 MB/s eta 0:00:00
DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: debugpy
Successfully installed debugpy-1.8.0
 *  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 f3M70p$Wd scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/tobias/quickstart/quickstart/docker-compose.yml torizon@192.168.1.115:~/ 

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

 *  Executing task: DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans 


The command 'docker-compose' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/


 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: pwsh -nop .conf/validateDepsRunning.ps1 


⚠️ VALIDATING ENVIRONMENT


✅ Environment is valid!

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

 *  Executing task: bash -c [[ ! -z "192.168.1.115" ]] && 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: [ $(/bin/python3 -m pip --version | awk '{print $2}' | cut -d'.' -f1) -lt 23 ] && /bin/python3 -m pip install --upgrade pip || true 

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

 *  Executing task: /bin/python3 -m pip install --break-system-packages -r requirements-debug.txt 

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: debugpy in /home/tobias/.local/lib/python3.10/site-packages (from -r requirements-debug.txt (line 1)) (1.8.0)
DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
 *  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 f3M70p$Wd scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/tobias/quickstart/quickstart/docker-compose.yml torizon@192.168.1.115:~/ 

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

 *  Executing task: DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans 


The command 'docker-compose' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/


 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: pwsh -nop .conf/validateDepsRunning.ps1 


⚠️ VALIDATING ENVIRONMENT


✅ Environment is valid!

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

 *  Executing task: bash -c [[ ! -z "192.168.1.115" ]] && 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: [ $(/bin/python3 -m pip --version | awk '{print $2}' | cut -d'.' -f1) -lt 23 ] && /bin/python3 -m pip install --upgrade pip || true 

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

 *  Executing task: /bin/python3 -m pip install --break-system-packages -r requirements-debug.txt 

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: debugpy in /home/tobias/.local/lib/python3.10/site-packages (from -r requirements-debug.txt (line 1)) (1.8.0)
DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
 *  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 f3M70p$Wd scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/tobias/quickstart/quickstart/docker-compose.yml torizon@192.168.1.115:~/ 

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

 *  Executing task: DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans 


The command 'docker-compose' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/


 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: pwsh -nop .conf/validateDepsRunning.ps1 


⚠️ VALIDATING ENVIRONMENT


✅ Environment is valid!

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

 *  Executing task: bash -c [[ ! -z "192.168.1.115" ]] && 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: [ $(/bin/python3 -m pip --version | awk '{print $2}' | cut -d'.' -f1) -lt 23 ] && /bin/python3 -m pip install --upgrade pip || true 

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

 *  Executing task: /bin/python3 -m pip install --break-system-packages -r requirements-debug.txt 

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: debugpy in /home/tobias/.local/lib/python3.10/site-packages (from -r requirements-debug.txt (line 1)) (1.8.0)
DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
 *  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 f3M70p$Wd scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/tobias/quickstart/quickstart/docker-compose.yml torizon@192.168.1.115:~/ 

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

 *  Executing task: DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans 


The command 'docker-compose' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/


 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

Reported by: @undefined

If you have more data that you think that is interesting from the context of the issue please reply below.

Thanks :robot:

The title is misleading and is not the actual error. The actual error can be seen in the tasks logs here:

...
 *  Executing task: DOCKER_HOST=192.168.1.115:2375 docker-compose -p torizon down --remove-orphans 


The command 'docker-compose' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.
...

Seems like you don’t have docker-compose V1 installed in your WSL environment. Could you confirm if this is the case? If yes then try installing this.

Best Regards,
Jeremias