docker / desktop-linux

Bug reports for Docker Desktop for Linux
https://docs.docker.com/desktop/linux/
73 stars 5 forks source link

Failed to start: setting up UID map: exit status 1 #199

Closed chinese-wzq closed 2 months ago

chinese-wzq commented 4 months ago

Description

On startup it shows that the docker engine is being started and reports an error after some time.

Reproduce

systemctl start --user docker-desktop

Expected behavior

No response

docker version

Client:
Version:           25.0.2
API version:       1.44
Go version:        go1.21.6
Git commit:        29cf629222
Built:             Thu Feb  1 10:50:44 2024
OS/Arch:           linux/amd64
Context:           default

Server:
Engine:
Version:          25.0.2
API version:      1.44 (minimum version 1.24)
Go version:       go1.21.6
Git commit:       fce6e0ca9b
Built:            Thu Feb  1 10:50:44 2024
OS/Arch:          linux/amd64
Experimental:     false
containerd:
Version:          v1.7.13
GitCommit:        7c3aca7a610df76212171d200ca3811ff6096eb8.m
runc:
Version:          1.1.12
GitCommit:
docker-init:
Version:          0.19.0
GitCommit:        de40ad0

docker info

Client:
Version:    25.0.2
Context:    default
Debug Mode: false
Plugins:
compose: Docker Compose (Docker Inc.)
Version:  2.24.5
Path:     /usr/lib/docker/cli-plugins/docker-compose
extension: Manages Docker extensions (Docker Inc.)
Version:  v0.2.21
Path:     /usr/lib/docker/cli-plugins/docker-extension

Server:
Containers: 10
Running: 0
Paused: 0
Stopped: 10
Images: 5
Server Version: 25.0.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 7c3aca7a610df76212171d200ca3811ff6096eb8.m
runc version:
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 6.7.4-arch1-1
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 46.84GiB
Name: WuZongquan
ID: 3deec936-38ac-445a-86b3-c5b1d2575d0b
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://registry.docker-cn.com/
Live Restore Enabled: false

Diagnostics ID

118b99c8-fe22-4244-9736-627bed92a5b7/20240216004533

Additional Info

===cat /etc/subgid
example:100000:65536
===cat /etc/subuid
example:100000:65536
Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.7.4-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 46.8 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650/PCIe/SSE2
2月 16 08:45:26 example com.docker.backend[4313]: running VM: running VM and dependencies: running VM: running qemu: starting filesharing processes: starting virtiofsd for /home: setting up ID maps for virtiofsd namespace: setting upUID map: exit status<INT>
2月 16 08:45:26 example com.docker.backend[4313]: [2024-02-16T00:45:26.160972671Z][com.docker.backend.bugsnag][I] notifying bugsnag: [starting] running VM: running VM and dependencies: running VM: running qemu: starting filesharing processes: starting virtiofsd for /home: setting up ID maps for virtiofsd namespace: setting up UID map: exit status 1
2月 16 08:45:26 example com.docker.backend[4313]: [2024-02-16T00:45:26.851131487Z][com.docker.backend.main][I] shutting down analytics client
2月 16 08:45:26 example com.docker.backend[4313]: [2024-02-16T00:45:26.851214692Z][com.docker.backend.segment][I] exit requested – draining messages
2月 16 08:45:26 example com.docker.backend[4313]: [2024-02-16T00:45:26.851236516Z][com.docker.backend.segment][I] exit
2月 16 08:45:26 example systemd[1600]: docker-desktop.service: Main process exited, code=exited, status=150/n/a
2月 16 08:45:26 example systemd[1600]: docker-desktop.service: Failed with result 'exit-code'.
CCCDDDEEEFFF commented 2 months ago

Also getting the same issue when installing on Ubuntu.

chinese-wzq commented 2 months ago

New version fixed the problem.