-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docker from_env and pull is broken on mac #3059
Comments
Same here... |
We see a similar issue when we call |
I was able to track down this issue. With latest release of docker, the context of the client is changed from Run
And the run
Then setting But the problem is, how can we know this endpoint configuration, if we can't connect to docker daemon? Maintainers, we need your feedback to resolve this issue. |
this took our docker desktops offline as well. we kinda feel we need to set |
Thanks for the report! We're trying to make Docker Desktop more userspace-friendly (e.g., fewer root privileges). As part of that, we're migrating the sockets to user-owned directories rather than root-owned directories (like /var/run). Desktop 4.13 no longer installs a socket under /var/run. For now you can work around this by creating the symlink manually:
We're currently working on rolling this change back and figuring out how to roll it out in a more orderly way, including updating the docker-py library to detect this case. See docker/for-mac#6529 for more info. |
Please upgrade to Docker Desktop 4.13.1 if you were encountering this issue! To echo what @nicks said, the change in Docker Desktop was reverted, and if/when it's re-introduced, we'll make sure there's a clear path to better support it. |
Upgraded, now it starts but after a while stop unexpectedly...
Il giorno mer 2 nov 2022 alle ore 20:34 Milas Bowman <
***@***.***> ha scritto:
… Please upgrade to Docker Desktop 4.13.1 if you were encountering this
issue!
To echo what @nicks <https://github.com/nicks> said, the change in Docker
Desktop was reverted, and if/when it's re-introduced, we'll make sure
there's a clear path to better support it.
—
Reply to this email directly, view it on GitHub
<#3059 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3VFM6FKPMEPQGXMCXI2GTWGK63HANCNFSM6AAAAAARMU77NE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@pdoorr Please open a new issue for that with your OS/environment info and any other context. This issue was about the |
If you are running Rancher Desktop you need this line:
|
Unusual issue here - code that was working on Thursday is no longer working today, so this might be tied into some behind-the-scenes update to Docker Desktop. On that note, I've also tried with explicit Docker Desktop versions 4.13.0, 4.12.0, 4.11.1 (and used the clean uninstaller to remove the VMs and temp folders left over) and all report the same issue.
Docker-desktop 4.10.1 does not produce an error, and it is the version I am now migrating to.
Reproduction:
conda create -n docker python=3.10 && conda activate docker
pip install docker
python -c "import docker; client = docker.from_env()"
The final command fails.
By specifying
version="1.35"
when making a client, it will not fail, but then any subsequentclient.images.pull
will fail regardless:I can confirm docker is running during these as well. Screenshot attached.
I separate team member has been able to reproduce this, but on their m1 hardware (I ran it on my x86 based mac).
The text was updated successfully, but these errors were encountered: