-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After Docker upgrade - results in "The path /etc/localtime is not shared from OS X and is not known to Docker" #2396
Comments
Having the same problem |
I am also having same problem |
Same on me |
Facing same issue. Downgraded docker to Version 17.09.1-ce-mac42 to proceed for now. |
Same on me |
I also have the same issue. Downgrading if i can figure out how |
If you go to Preferences/File Sharing, is |
@justincormack No
|
Having the same issue, |
Ah ok, it looks like the host does not have an What exactly are you trying to achieve by bind mounting it? Which local time are you interested in? |
On my machine:
I think this technique is a popular solution to configure a container's timezone. |
I have this same issue, with
Specifically on OSX, I know that By happy coincidence, though, that Could this be a regression in docker / Docker-for-Mac's handling of symlinks in bind-mounts? For now, I work around the issue by re-installing an older version: Docker-for-Mac 17.09.1-ce-mac42 (21090) |
If you do add
|
Same issue: here's my OSX-specific workaround.
|
Ah nice trick. Smart to use an env variable instead. Hopefully they
Thanks,
Rich
… On Jan 16, 2018, at 16:12, Giel ***@***.***> wrote:
Same issue: here's my OSX-specific workaround.
Make sure you have the tzdata package installed in the container
Add -e TZ=`ls -la /etc/localtime | cut -d/ -f8-9` to the docker run command line
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have the same issue, and I need to make it work with |
Solved ... specified |
Tried setting
|
We are also affected by this change. Please fix it. |
Any update on this bug? |
Hey all - this worked for me, on High Sierra:
Then my
Some thoughts:
|
@sprive this worked for me. Thanks! |
Commenting to say this is still an issue on High Sierra, latest Docker for mac |
+1 |
I downgraded docker version to 17.09.1-ce-mac42 (21090) and solved this problem. ㅠ_ㅠ |
It worked for me... |
It's very easy to solve just docker-compose.yml
use All the method above I have tried, nothing work for me and thanks for contributers |
An alter
An alternative to this is |
My container worked until yesterday and now it fails. I'm not sure what has changed. |
reallink is a non-existing command. I had confused it for realpath. However, what I had mean to use was readlink. See: docker/for-mac#2396 (comment)
reallink is a non-existing command. I had confused it for realpath. However, what I had mean to use was readlink. See: docker/for-mac#2396 (comment)
It's the simplest method but worked |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
/lifecycle frozen |
/remove-lifecycle stale |
When TZ is not explicitly specified, docker on mac throws up this nice error by default: ``` docker: Error response from daemon: Mounts denied: The path /etc/localtime is not shared from OS X and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. ``` Refer this upstream docker for-mac upstream issue for details: docker/for-mac#2396 This tiny improvement makes onboarding easier for mac folks who don't want to install libcoap maybe?
When TZ is not explicitly specified, docker on mac throws up this nice error by default: ``` docker: Error response from daemon: Mounts denied: The path /etc/localtime is not shared from OS X and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. ``` Refer this upstream docker for-mac upstream issue for details: docker/for-mac#2396 This tiny improvement makes onboarding easier for mac folks who don't want to install libcoap maybe?
Had this issue because /etc/ repository wasn't shared with docker. You just have to add this repository in the Resources menu -> FILE SHARING from the docker UI. |
Expected behavior
Docker upgrade shouldn't affect already working mount mappings.
Actual behavior
Upgrade to new version of docker on Mac OSX now results in "The path /etc/localtime
is not shared from OS X and is not known to Docker".
Information
Docker for Mac: version: 17.12.0-ce-mac46 (a61e84b8bca06b1ae6ce058cdd7beab1520ad622)
macOS: version 10.12.6 (build: 16G1114)
logs: /tmp/072847D3-A6CD-4D63-BC1A-BE8199F81553/20180110-104443.tar.gz
[OK] db.git
[OK] vmnetd
[OK] dns
[OK] driver.amd64-linux
[OK] virtualization VT-X
[OK] app
[OK] moby
[OK] system
[OK] moby-syslog
[OK] kubernetes
[OK] env
[OK] virtualization kern.hv_support
[OK] slirp
[OK] osxfs
[OK] moby-console
[OK] logs
[OK] docker-cli
[OK] menubar
[OK] disk
Steps to reproduce the behavior
1.On previous version, Existing docker run command executed successfully as:
The text was updated successfully, but these errors were encountered: