Error when managing extensions: /usr/local/bin/docker no such file
Description
When attempting to update or uninstall extensions in Docker Desktop for Linux v4.26.1 the action results in a notification:
Extension was not updated. Reason: removing extension containers: executing '/usr/local/bin/docker --context desktop-linux compose -p ambassador_telepresence-docker-extension-desktop-extension down --remove-orphans' : fork/exec /usr/local/bin/docker: no such file or directory:
Docker exists as:
$ which docker
/usr/bin/docker
Reproduce
- Visit Extensions marketplace
- Click Update or Uninstall on an extension.
Expected behavior
Success.
docker version
$ docker version
Client:
Version: 24.0.7
API version: 1.43
Go version: go1.21.3
Git commit: afdd53b4e3
Built: Sun Oct 29 15:42:02 2023
OS/Arch: linux/amd64
Context: desktop-linux
Server: Docker Desktop 4.26.1 (131620)
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:02 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.25
GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
$ docker info
Client:
Version: 24.0.7
Context: desktop-linux
Debug Mode: false
Plugins:
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.21
Path: /usr/lib/docker/cli-plugins/docker-extension
Server:
Containers: 46
Running: 21
Paused: 0
Stopped: 25
Images: 34
Server Version: 24.0.7
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc version: v1.1.10-0-g18a0cb0
init version: de40ad0
Security Options:
seccomp
Profile: unconfined
cgroupns
Kernel Version: 6.5.11-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 7.517GiB
Name: docker-desktop
ID: 61537761-91ad-4b8b-a0a7-0c941f0e6544
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
127.0.0.0/8
Live Restore Enabled: false
WARNING: daemon is not using the default seccomp profile
Diagnostics ID
da84613a-4391-40a6-aa8d-354211ca2287/20240115140410
Additional Info
Installed via manual package on archlinux.
I found the solution You have to create symbolic link to that directory
sudo ln -s /usr/bin/docker /usr/local/bin/docker
I tried creating the symbolic link to the directory but it wasn´t worked, got an error: ln: failed to create symbolic link '/usr/local/bin/docker': No such file or directory
I tried creating the symbolic link to the directory but it wasn´t worked, got an error: ln: failed to create symbolic link '/usr/local/bin/docker': No such file or directory
Can you share the exact command you ran? Did you include the sudo or run it as root user?
Run ls -lasth /usr/bin/docker and ls -lasht /usr/local/bin/docker and post the output.