Trying to install Torizon IDE Extension and get error about Docker gateway address

Seems to be a docker failure when installing the IDE Wizard:

[12-03 18:46:08.910] Activating Torizon IDE …

[12-03 18:46:08.910] Torizon IDE version :: 3.2.5

[12-03 18:46:09.798] Latest Torizon IDE published :: 3.2.134

[12-03 18:46:09.798] Telemetry is enabled

[12-03 18:46:09.798] 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: Settings - Data Collection | Toradex Developer Center

[12-03 18:46:09.798] 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.

[12-03 18:46:09.799] Resolving host IP address …

[12-03 18:46:12.245] Host IP address OK

[12-03 18:46:12.246] Bash as default shell OK

[12-03 18:46:12.253] Docker installed OK

[12-03 18:46:12.419] ERROR :: Docker is not running. Please start the Docker runtime daemon

[12-03 18:46:12.571] ERROR :: Docker compose is not installed. Please install Docker compose Install | Docker Docs

[12-03 18:46:12.578] PowerShell OK

[12-03 18:46:12.585] git OK

[12-03 18:46:12.591] dig OK

[12-03 18:46:12.598] avahi-resolve OK

[12-03 18:46:12.604] nmap OK

[12-03 18:46:12.611] iputils-ping OK

[12-03 18:46:12.618] file OK

[12-03 18:46:12.625] sshpass OK

[12-03 18:46:12.696] iproute2 OK

[12-03 18:46:12.703] rsync OK

[12-03 18:46:12.711] python3 OK

[12-03 18:46:12.717] pipx OK

[12-03 18:46:12.718] Cloning project templates

[12-03 18:46:12.718] Templates repo: GitHub - torizon/vscode-torizon-templates: VS Code Torizon Integrated Development Environment Templates

[12-03 18:46:12.718] Templates branch: bookworm-7

[12-03 18:46:12.718] Templates tag/hash: tos7

[12-03 18:46:12.726] Project templates clone of branch bookworm-7 OK

[12-03 18:46:13.150] Project templates fetched OK

[12-03 18:46:13.166] Checkout templates repo to tag origin/bookworm-7 OK

[12-03 18:46:19.446] xonsh installation OK

[12-03 18:46:19.447] Checking connected devices …

[12-03 18:46:19.448] Scanning Torizon devices …

[12-03 18:46:19.457] Debian bookworm packages list load OK

[12-03 18:46:19.457] ERROR :: Errors during the initialization of Torizon IDE Extension.

[12-03 18:46:19.457] HOUSTON WE HAVE A PROBLEM!

[12-03 18:46:19.457] PLEASE READ THE LOGS!

[12-03 18:46:19.457] ERROR :: Please share this log on https://community.toradex.com

[12-03 18:46:19.510] Checking host ip sanity …

[12-03 18:46:19.731] Error scanning devices: Not possible to get docker network gateway

[12-03 18:46:22.690] Host ip is OK

[12-03 18:46:22.737] Device 192.168.12.160 set as Docker Host

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Docker Installation and Configuration Issues

Based on your log output, the Torizon IDE extension is encountering two main Docker-related issues during initialization:

Primary Issues Identified

  1. Docker daemon not running: The log shows ERROR :: Docker is not running. Please start the Docker runtime daemon
  2. Docker Compose missing: The log indicates ERROR :: Docker compose is not installed

Resolution Steps

1. Start Docker Daemon

First, ensure Docker is running on your system. The method depends on your operating system:

  • Linux: Start Docker service with sudo systemctl start docker
  • Windows/macOS: Start Docker Desktop application

2. Install Docker Compose

The extension requires Docker Compose to be installed. Based on the community discussions, ensure you have the correct Docker setup (1).

3. Verify Docker Installation

After starting Docker, verify it’s working by running basic Docker commands from your terminal (2):

# docker

(2)

This should display the list of Docker commands if properly installed.

4. Check Docker Configuration

The log also mentions Error scanning devices: Not possible to get docker network gateway, which suggests network configuration issues. Ensure Docker networking is properly configured and accessible.

Important Note About Docker Setup

Based on community feedback, it’s recommended to use either Docker Desktop OR Docker Engine in WSL2, but not both simultaneously, as this can cause conflicts with the VS Code extension (1).

Next Steps

  1. Start your Docker daemon
  2. Install Docker Compose if missing
  3. Restart VS Code and try initializing the Torizon IDE extension again
  4. If issues persist, verify your Docker installation can run basic commands

The extension should initialize successfully once Docker is properly running and configured.

Best regards, Toradex AI Assistant.


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

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

I installed docker desktop on my host (win11); it contains docker compose. I started VS Code but it still had same error initializing Torizon. Then I ran Docker Desktop (on windows), then restarted VS Code, and Torizon successfully initialized.

Excellent Resolution!

Thank you for sharing your solution - this is exactly the correct approach for Windows hosts. Your experience perfectly demonstrates the proper initialization sequence for the Torizon IDE Extension on Windows.

What You Did Right

  1. Installed Docker Desktop: You correctly chose Docker Desktop for Windows, which includes Docker Compose (1)
  2. Started Docker Desktop: The key step - ensuring the Docker daemon is actually running before initializing the extension (1)
  3. Restarted VS Code: This allowed the extension to properly detect the running Docker environment

Why This Works

The Torizon IDE Extension requires Docker Engine to be running before it can initialize properly (1). On Windows, Docker Desktop provides both Docker Engine and Docker Compose in a single package (1). The extension performs dependency checks during activation, and if Docker isn’t running, it will fail with the errors you initially encountered (1).

For Other Windows Users

Your solution confirms the recommended setup process:

  1. Install Docker Desktop on the Windows side (1)
  2. Start Docker Desktop before launching VS Code (1)
  3. Install VS Code on Windows (not in WSL) (1)
  4. Install the Torizon IDE Extension through VS Code’s Extensions marketplace (1)

Important Note

While Docker Desktop works well for development, the documentation notes that Docker Desktop is licensed under the Docker Subscription Service Agreement, whereas Docker Engine uses the Apache License 2.0 (1). For production or commercial use, consider the licensing implications.

Your successful initialization confirms that the Torizon IDE Extension is now ready for application development with containerized workflows.

Best regards, Toradex AI Assistant.


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

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.