Installing Toradex tools into Ubuntu VM on my MacBook.
Following instructions from this webpage:
Everything seems fine up thru addgroup (including verifying HelloWorld App).
Then, attempting to enable ARM emulation, per instructions:
parallels@ubuntu-linux-20-04-desktop:~$ docker run --rm -it arm32v7/debian arch
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create”: dial unix /var/run/docker.sock: connect: permission denied.
See ‘docker run --help’.
parallels@ubuntu-linux-20-04-desktop:~$
Typically this permission error occurs when trying to use Docker without the right permissions. There are two main ways around this:
Run every Docker command with sudo
Add your user to the docker user group.
Our article you linked has you do the second method. Though you mentioned you did do this addgroup command already.
Did you make sure to logout/login so that this change was applied by the system? If you run the groups command do you see the docker group in the output list?
I installed VS and then installed the Toradex Extension … but hit a snag
Apparently I need to first install and run the Docker Deskptop in the Ubuntu VM
Yet, when I DL/Install as per instruction from Docker:
parallels@ubuntu-linux-20-04-desktop:~/Downloads$ sudo apt-get install ./docker-desktop-4.9.1-amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘docker-desktop:amd64’ instead of ‘./docker-desktop-4.9.1-amd64.deb’
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker-desktop:amd64 : Depends: docker-ce-cli:amd64 but it is not installable
Depends: libseccomp2:amd64 but it is not installable
Depends: libcap-ng0:amd64 but it is not installable
Depends: pass:amd64 but it is not installable
Depends: libgtk-3-0:amd64 but it is not installable
Depends: libx11-xcb1:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
I think for this VM, I would need a Docker Desktop DEBIAN Pkg that is using arm64, yes?
I can only find amd64.
Do I need to be looking elsewhere for the right architecture package?
Have a 64-bit version of either Ubuntu Jammy Jellyfish 22.04 (LTS) or Ubuntu Impish Indri 21.10. Docker Desktop is supported on x86_64 (or amd64) architecture.
Therefore I don’t think your version of Ubuntu is even compatible with Docker Desktop.
To be clear….I did do the steps to enable the Docker Engine for my username.
So, I can get the same result when running "docker run hello-world” without “sudo”
Yet, I still get the same error from VS when installing the Toradex Extension