Docker not work

Hi technical Support,
We used Colibri imx6 dl , We used WSL Windows VSC as development environment, we installed Docker desktop, and all stuff according to your document.
In the past, it worked well. but today, when we start target,
VSC displays Errors below:

Docker seems to not be enabled for the current user, this will prevent Torizon

Error running command torizon.refreshDeviceList: command ‘torizon.refreshDeviceList’ not found. This is likely caused by the extension that contributes torizon.refreshDeviceList.

I used Windows Run “netplwiz”, it displays I (email address) am in the docker user group

Thanks
Jack Xia

Hi @changdixia ,

Welcome to our community! Feel free to explore other topics of interest.

We used Colibri imx6 dl , We used WSL Windows VSC as development environment, we installed Docker desktop, and all stuff according to your document.

Just to be sure, is VSCode running inside WSL? Our extension is designed to run on VSCode installed locally on Windows, as said here: Visual Studio Code Extension for Torizon | Toradex Developer Center.

Can you verify if this is the case?

Best regards,
Lucas Akira

Hi Lucas,
Thanks for your fast respond.
We use VSC under WSL.
Docker desktop under WSL (Ubuntu), we try under windows, not works either.

Thanks
Changdi (Jack) Xia

Hi @changdixia ,

We use VSC under WSL.

To use our extension VSCode should be running locally and not on WSL, otherwise there might be unexpected bugs and behaviors which we don’t support. Try installing VSCode locally and see if it helps.

Docker desktop under WSL (Ubuntu), we try under windows, not works either.

Docker should also be installed directly on Windows. Make sure you have our recommended Docker Desktop configuration as instructed here: Configure Build Environment for Torizon Containers | Toradex Developer Center.

Best regards,
Lucas Akira

Hi, I am a colleague of Jacks.

I can say that his VSC is set up exactly as mine is, i.e. under WINDOWS,
When running VSC Jack sometimes goes into WSL and types

code .

Which may be why there is some confusion. Normally however, VSC is being run from the windows tray by right clicking on the VSC icon, then clicking on the menu item “OurProject [Dev conainer]”

We went through our Docker settings side-by-side and could only find one anomaly, that my system is running Ubuntu 18.04 and his just simply says Ubuntu. Other than that, everything looks the same, including Jack’s Docker engine.

{
“builder”: {
“gc”: {
“defaultKeepStorage”: “20GB”,
“enabled”: true
}
},
“experimental”: false,
“features”: {
“buildkit”: false
}
}

We also went in under Jack’s Windows settings using netplwiz. If you compare, My group says Administrators, Users, but not docker-users and yet I still have no troubles using Docker. (Another user on my system ITResources does have docker-users though)

On Jacks’s computer however, his user has just docker-users but not administrator… Not sure if that matters. He is not a memeber of “Users”

Hi Lucas,
Sorry , I made you misunderstanding what I mean.
VSC is installed under windows 10 , Docker desktop is installed under windows 10 too.

When I said VSC running under Ubuntu, it does not mean VSC is installed under Ubuntu. We know VSC status bar (left bottom ) displays “WSL: Ubuntu ”, I can right click to popup menu, and uncheck “Remote Host” to make “WSL: Ubuntu” disappears.

Similarly, for Dock desktop, I can right-click “Dock desktop” tray to display a context menu, click “switch to windows containers…” (it means that it was in WSL Ubuntu).

All configuration is the same as my co-worker Leigh’s one.
And My environment was working perfect in the past, I didn’t make any changes. However, it suddenly does not work.

Why does not this platform work stable?

I am the first time to use VSC for torizon.

In the past, I just used VSC as a good Editor with programming language syntax color and intelligence- sensing.
If it is related to internet connection, Can we use off-line as Torizon development platform (I don’t want to update, I just keep the one when I set-up. And for source code, we can keep local git repository, no need to connect GitHub. We don’t want new docker image, it is no reason to keep connect to DockerHub).

I attached my VSC output from My Screen:

[10-26 15:25:49.616] Initializing Torizon Extension

[10-26 15:25:49.620] Checking system setup…

[10-26 15:25:49.620] Docker seem to not be enabled for current user, this will prevent many of the features of Torizon extension from working.

You may add your user to the docker group or run the Torizon IDE backend with an account that is part of that group.

[10-26 15:25:49.620] Checking Moses …

[10-26 15:25:49.780] Starting backend local instance running on port 5001

[10-26 15:25:54.159] Torizon Backend version 1.0.0 API version: 1.1.6

[10-26 15:25:54.159] Torizon IDE backend started

[10-26 15:25:54.160] Checking Docker …

And Stuck here forever
Of cause, I can see “VSC-…” image is running as container in Docker Desk ( it is under WSL Linux, However Docker Desk is installed under windows 10)

Thanks

Chang Di (Jack) Xia

Hi @changdixia ,

Can you reproduce your issue and send the resulting extension backend logs found here:

Send the output in a text file and I’ll pass it to the extension team for further analysis.

Best regards,
Lucas Akira

Torizon_backend.txt (50.9 KB)
I attached torizon backend process fille above

Thanks
Chang Di (Jack) Xia

This problem is fixed by "Google seach "
I just run command in WSL command line below:
sudo chmod 777 /var/run/docker.sock

Thanks
Chang Di (Jack ) Xia

Glad you managed to solve your issue!

Best regards,
Lucas Akira