Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Unable to access shared filesystem #1732

Open
U-Sahaj opened this issue Apr 2, 2023 · 0 comments
Open

Unable to access shared filesystem #1732

U-Sahaj opened this issue Apr 2, 2023 · 0 comments

Comments

@U-Sahaj
Copy link

U-Sahaj commented Apr 2, 2023

Having read https://docs.docker.com/desktop/settings/mac/#file-sharing, and inspected the dev container "mongo:latest" - a docker image found on Docker Hub, the following mount source or target are still not available,

{
    "Id": "2132609eb6ec939f52b1cd8143fbdcc12047193ac6c8fa2f8210ff06e555da83",
    "Created": "2023-04-02T04:42:28.412031088Z",
    "Path": "docker-entrypoint.sh",
    "Args": [
        "mongod"
    ],
    "State": {
        "Status": "running",
        "Running": true,
        "Paused": false,
        "Restarting": false,
        "OOMKilled": false,
        "Dead": false,
        "Pid": 96797,
        "ExitCode": 0,
        "Error": "",
        "StartedAt": "2023-04-02T09:04:05.016773042Z",
        "FinishedAt": "2023-04-02T09:04:04.709045542Z"
    },
    "Image": "sha256:58042414fbaa40d859cff063c07cb9ccdebb4bd554ba9c679db6f061cbc7ab8b",
    "ResolvConfPath": "/var/lib/docker/containers/2132609eb6ec939f52b1cd8143fbdcc12047193ac6c8fa2f8210ff06e555da83/resolv.conf",
    "HostnamePath": "/var/lib/docker/containers/2132609eb6ec939f52b1cd8143fbdcc12047193ac6c8fa2f8210ff06e555da83/hostname",
    "HostsPath": "/var/lib/docker/containers/2132609eb6ec939f52b1cd8143fbdcc12047193ac6c8fa2f8210ff06e555da83/hosts",
    "LogPath": "/var/lib/docker/containers/2132609eb6ec939f52b1cd8143fbdcc12047193ac6c8fa2f8210ff06e555da83/2132609eb6ec939f52b1cd8143fbdcc12047193ac6c8fa2f8210ff06e555da83-json.log",
    "Name": "/test-mongo",
    "RestartCount": 0,
    "Driver": "overlay2",
    "Platform": "linux",
    "MountLabel": "",
    "ProcessLabel": "",
    "AppArmorProfile": "",
    "ExecIDs": [
        "ea06363c07ba4b43e6375c1fdb6e4fbcdf33a4e1b4409c58c863b7e2fc2bfc9d"
    ],
    "HostConfig": {
        "Binds": null,
        "ContainerIDFile": "",
        "LogConfig": {
            "Type": "json-file",
            "Config": {}
        },
        "NetworkMode": "test-network",
        "PortBindings": {},
        "RestartPolicy": {
            "Name": "no",
            "MaximumRetryCount": 0
        },
        "AutoRemove": false,
        "VolumeDriver": "",
        "VolumesFrom": null,
        "CapAdd": null,
        "CapDrop": null,
        "CgroupnsMode": "private",
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": null,
        "GroupAdd": null,
        "IpcMode": "private",
        "Cgroup": "",
        "Links": null,
        "OomScoreAdj": 0,
        "PidMode": "",
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyRootfs": false,
        "SecurityOpt": null,
        "UTSMode": "",
        "UsernsMode": "",
        "ShmSize": 67108864,
        "Runtime": "runc",
        "ConsoleSize": [
            0,
            0
        ],
        "Isolation": "",
        "CpuShares": 0,
        "Memory": 0,
        "NanoCpus": 0,
        "CgroupParent": "",
        "BlkioWeight": 0,
        "BlkioWeightDevice": [],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteIOps": null,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "Devices": [],
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "OomKillDisable": null,
        "PidsLimit": null,
        "Ulimits": null,
        "CpuCount": 0,
        "CpuPercent": 0,
        "IOMaximumIOps": 0,
        "IOMaximumBandwidth": 0,
        "MaskedPaths": [
            "/proc/asound",
            "/proc/acpi",
            "/proc/kcore",
            "/proc/keys",
            "/proc/latency_stats",
            "/proc/timer_list",
            "/proc/timer_stats",
            "/proc/sched_debug",
            "/proc/scsi",
            "/sys/firmware"
        ],
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ]
    },
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/e7de69dda55cac5ada180e3b7906958cfbbfdd58fd74839a05180e7bae371a5d-init/diff:/var/lib/docker/overlay2/56a0f0fe903f0307d1cbb54ec62ba7c9909609816d1ffed57bf47e6b27876d97/diff:/var/lib/docker/overlay2/d4780a94c20b37eb0733513dd132c06dc82c06bdf00e67546e4bb604db8c6ffd/diff:/var/lib/docker/overlay2/aa1596abef6b322dc695056e5790a017773acbabf533e1e8118dc358fa8ee08a/diff:/var/lib/docker/overlay2/2068148e892ab1adc17078bc3fac4df22ce551353291d447f34e06f2e99bef30/diff:/var/lib/docker/overlay2/3b9d8202eb6e9f063ed78d8bfe357dfdf1c5c27d0394e8a3d83e8601288bb32a/diff:/var/lib/docker/overlay2/b3152647d18a82df631e46ecbcc44c325136c9117ac24a5542749b6048936770/diff:/var/lib/docker/overlay2/a162215e7dc00e5c5f683f577f54074589bb73b76c0c611b199cc0944395738c/diff:/var/lib/docker/overlay2/4e4aaa7c65cc1b66fa2107ecebd3eb89b00415083413733e1b39b876b37d9228/diff:/var/lib/docker/overlay2/677ab2ab243dddbc22ba438e04b29c28676a2367bbc818e32ccbe30141e7acea/diff",
            "MergedDir": "/var/lib/docker/overlay2/e7de69dda55cac5ada180e3b7906958cfbbfdd58fd74839a05180e7bae371a5d/merged",
            "UpperDir": "/var/lib/docker/overlay2/e7de69dda55cac5ada180e3b7906958cfbbfdd58fd74839a05180e7bae371a5d/diff",
            "WorkDir": "/var/lib/docker/overlay2/e7de69dda55cac5ada180e3b7906958cfbbfdd58fd74839a05180e7bae371a5d/work"
        },
        "Name": "overlay2"
    },
    "Mounts": [
        {
            "Type": "volume",
            "Name": "a7ec8fe99a0444676b6bfc2f0e1101f15d8d5740138ed35a0beca598a703aaac",
            "Source": "/var/lib/docker/volumes/a7ec8fe99a0444676b6bfc2f0e1101f15d8d5740138ed35a0beca598a703aaac/_data",
            "Destination": "/data/db",
            "Driver": "local",
            "Mode": "",
            "RW": true,
            "Propagation": ""
        },
        {
            "Type": "volume",
            "Name": "71357f95979a17e77843a433b8a148a005ddc3d457e7174695563465e365afa3",
            "Source": "/var/lib/docker/volumes/71357f95979a17e77843a433b8a148a005ddc3d457e7174695563465e365afa3/_data",
            "Destination": "/data/configdb",
            "Driver": "local",
            "Mode": "",
            "RW": true,
            "Propagation": ""
        }
    ],
    "Config": {
        "Hostname": "2132609eb6ec",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "27017/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "GOSU_VERSION=1.16",
            "JSYAML_VERSION=3.13.1",
            "MONGO_PACKAGE=mongodb-org",
            "MONGO_REPO=repo.mongodb.org",
            "MONGO_MAJOR=6.0",
            "MONGO_VERSION=6.0.5",
            "HOME=/data/db"
        ],
        "Cmd": [
            "mongod"
        ],
        "Image": "mongo:latest",
        "Volumes": {
            "/data/configdb": {},
            "/data/db": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.version": "22.04"
        }
    },
    "NetworkSettings": {
        "Bridge": "",
        "SandboxID": "e806e2a55681f0371b4db7f40f5a7dd2f047881aa2a2fc337b2f7574247fc5d7",
        "HairpinMode": false,
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "Ports": {
            "27017/tcp": null
        },
        "SandboxKey": "/var/run/docker/netns/e806e2a55681",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null,
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "MacAddress": "",
        "Networks": {
            "test-network": {
                "IPAMConfig": null,
                "Links": null,
                "Aliases": [
                    "2132609eb6ec"
                ],
                "NetworkID": "7e1fde9ce74939ac32da1c8ce5a6361cca209c6327d680391bf33b5622193d9e",
                "EndpointID": "0e02ae16de473894ca7550040774c48311e4f0310df0d3e22288bb838474ea49",
                "Gateway": "172.18.0.1",
                "IPAddress": "172.18.0.2",
                "IPPrefixLen": 16,
                "IPv6Gateway": "",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "MacAddress": "02:42:ac:12:00:02",
                "DriverOpts": null
            }
        }
    }
}

ie I cannot see them on my MacOS host by
ls /var/lib/docker/volumes/a7ec8fe99a0444676b6bfc2f0e1101f15d8d5740138ed35a0beca598a703aaac/_data or
ls /data/db
What am I missing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant