If you encountered the dependency issues, please install required packages.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
$ sudo apt-get install ./docker-desktop-4.22.0-amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'docker-desktop' instead of './docker-desktop-4.22.0-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 : PreDepends: init-system-helpers (>= 1.54~) but 1.51 is to be installed Depends: docker-ce-cli but it is not installable E: Unable to correct problems, you have held broken packages.
$ docker compose version Docker Compose version v2.20.2-desktop.1
$ docker --version Docker version 24.0.2, build cb74dfc
$ docker version permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied Client: Docker Engine - Community Cloud integration: v1.0.35-desktop+001 Version: 24.0.2 API version: 1.43 Go version: go1.20.4 Git commit: cb74dfc Built: Thu May 25 21:52:13 2023 OS/Arch: linux/amd64 Context: default
Start Docker. Select Accept to continue.
If you get the error below, run the command below.
1
sudo usermod -aG kvm $USER
Then I got this…
Tried to run /opt/docker-desktop/bin/com.docker.diagnose check
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Starting diagnostics
[PASS] DD0039: are KVM user permissions configured? [PASS] DD0018: does the host support virtualization? [PASS] DD0001: is the application running? [FAIL] DD0017: can a VM be started? vm has not started: failed to open kmsg.log: open /home/username/.docker/desktop/log/vm/kmsg.log: no such file or directory [FAIL] DD0016: is the LinuxKit VM running? prereq failed: can a VM be started? [FAIL] DD0011: are the LinuxKit services running? prereq failed: is the LinuxKit VM running? [FAIL] DD0004: is the Docker engine running? prereq failed: are the LinuxKit services running? [PASS] DD0015: are the binary symlinks installed? [FAIL] DD0031: does the Docker API work? prereq failed: is the Docker engine running? [PASS] DD0013: is the $PATH ok? [FAIL] DD0034: is Context set to a Docker Desktop context? CLI context is set to docker-ce engine [FAIL] DD0003: is the Docker CLI working? prereq failed: is the Docker engine running? [FAIL] DD0038: is the connection to Docker working? prereq failed: is the Docker engine running? [FAIL] DD0014: are the backend processes running? prereq failed: is the LinuxKit VM running? [FAIL] DD0007: is the backend responding? prereq failed: are the backend processes running?
Try to install LinuxKit
1 2 3 4
$ git clone https://github.com/linuxkit/linuxkit $ cd linuxkit $ sudo make $ sudo make install
The issue is still not solved. I even checked the setting of Intel virtualization technology and VT-d in the BIOS. They were already enabled…