docker / desktop-linux

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

"File sharing" can't add path #177

Closed theCodedMike closed 7 months ago

theCodedMike commented 7 months ago

Description

Error response from daemon: Mounts denied: The path /data/home/Mike/Github/apitable/.data/mysql is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. See https://docs.docker.com/ for more info.

this message is from Terminal.

https://github.com/docker/desktop-linux/assets/52379335/98c686a2-3164-42f1-8a81-6b348efd42ed

I have gid and uid: $ cat /etc/subuid Mike:100000:65536 $ cat /etc/subgid Mike:100000:65536

Info about my PC: OS: Deepin 20.9 x86_64 Kernel: 5.18.17-amd64-desktop-hwe CPU: 11th Gen Intel i7-11800H GPU: NVIDIA GeForce RTX 3060 Mobile

Reproduce

It's reproduced on my computer, and i uninstall the Docker Desktop then reinstall it again, the problem still exists.

Expected behavior

I can add a path.

docker version

Client: Docker Engine - Community
 Cloud integration: v1.0.35+desktop.5
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.14.2
 Git commit:        1b4342cd4c
 Built:             Fri Jun 19 03:26:58 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Desktop 4.25.0 (126437)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:32:16 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc., v2.23.0-desktop.1)
  dev: Docker Dev Environments (Docker Inc., v0.1.0)
  scan: Docker Scan (Docker Inc., v0.26.0)
  scout: Docker Scout (Docker Inc., v1.0.9)
  buildx: Docker Buildx (Docker Inc., v0.11.2-desktop.5)
  extension: Manages Docker extensions (Docker Inc., v0.2.20)
  init: Creates Docker-related starter files for your project (Docker Inc., v0.1.0-beta.9)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)

Server:
 Containers: 6
  Running: 0
  Paused: 0
  Stopped: 6
 Images: 6
 Server Version: 24.0.6
 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
 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: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
 runc version: v1.1.8-0-g82f18fe
 init version: de40ad0
 Security Options:
  seccomp
  WARNING: You're not using the default seccomp profile
   Profile: unconfined
  cgroupns
 Kernel Version: 6.4.16-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 7.662GiB
 Name: linuxkit-525400123456
 ID: d725e3bb-8764-4a9d-99be-8a23dcabcbbb
 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
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Registry Mirrors:
  https://xqcnxtl2.mirror.aliyuncs.com/
  http://hub-mirror.c.163.com/
  https://docker.mirrors.ustc.edu.cn/
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

Diagnostics ID

50894c8f-b5c0-42ae-91c7-acf0a6ad0546/20231109195408

Additional Info

No response

rachellerathbone commented 7 months ago

Was this resolved? I'm running into the same issue and I'm currently on the latest version 'Docker Desktop 4.25.2 (129061) is currently the newest version available.'

theCodedMike commented 6 months ago

Was this resolved? I'm running into the same issue and I'm currently on the latest version 'Docker Desktop 4.25.2 (129061) is currently the newest version available.'

Sorry for not checking Github recently.

My solution was to put the project under the path "/opt" (not "/home/Mike"). And my version of Docker Desktop was still 4.25.0 and has not been upgraded.

But strangely, I can now add paths from "/home/Mike/Github" to File Sharing.

Maybe you can reboot your computer and restart Docker Desktop and try again.