for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Updated Docker, Now Doesn't Work

Open asor12 opened this issue 6 years ago • 104 comments

  • [ ] I have tried with the latest version of my channel (Stable or Edge)
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID: [Diagnostics not working either]

Expected behavior

Launch Docker Desktop

Actual behavior

Returns Fatal Error: one of the sub-processes failed: com.docker.driver.amd64-linux -addr fd:3 -debug (pid: 13208)

Furthermore, Diagnostics is not working either.

Information

  • macOS Version: 10.13.6 High Sierra

I installed the latest update from Docker Desktop as prompted when opening the app. Now it gives me this Fatal Error when launching: one of the sub-processes failed: com.docker.driver.amd64-linux -addr fd:3 -debug (pid: 13208)

How do I fix this? Can I go back to the previous Docker Desktop version I was using?

Diagnostic logs

Docker for Mac: version...

I tried to run Diagnostics but it just stalls.

Steps to reproduce the behavior

  1. Install latest version of Docker Desktop
  2. Try to launch app

asor12 avatar Nov 02 '20 22:11 asor12

This is happening to me as well. I can't even docker ps or docker container ls it just hangs. When I try to docker build one of my compose file (which worked previously to the update) I get the following:

docker-compose build
Traceback (most recent call last):
  File "site-packages/urllib3/connectionpool.py", line 426, in _make_request
  File "<string>", line 3, in raise_from
  File "site-packages/urllib3/connectionpool.py", line 421, in _make_request
  File "http/client.py", line 1344, in getresponse
  File "http/client.py", line 306, in begin
  File "http/client.py", line 267, in _read_status
  File "socket.py", line 589, in readinto
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/requests/adapters.py", line 449, in send
  File "site-packages/urllib3/connectionpool.py", line 727, in urlopen
  File "site-packages/urllib3/util/retry.py", line 403, in increment
  File "site-packages/urllib3/packages/six.py", line 735, in reraise
  File "site-packages/urllib3/connectionpool.py", line 677, in urlopen
  File "site-packages/urllib3/connectionpool.py", line 428, in _make_request
  File "site-packages/urllib3/connectionpool.py", line 336, in _raise_timeout
urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/docker/api/client.py", line 205, in _retrieve_server_version
  File "site-packages/docker/api/daemon.py", line 181, in version
  File "site-packages/docker/utils/decorators.py", line 46, in inner
  File "site-packages/docker/api/client.py", line 228, in _get
  File "site-packages/requests/sessions.py", line 543, in get
  File "site-packages/requests/sessions.py", line 530, in request
  File "site-packages/requests/sessions.py", line 643, in send
  File "site-packages/requests/adapters.py", line 529, in send
requests.exceptions.ReadTimeout: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 67, in main
  File "compose/cli/main.py", line 123, in perform_command
  File "compose/cli/command.py", line 69, in project_from_options
  File "compose/cli/command.py", line 132, in get_project
  File "compose/cli/docker_client.py", line 43, in get_client
  File "compose/cli/docker_client.py", line 170, in docker_client
  File "site-packages/docker/api/client.py", line 188, in __init__
  File "site-packages/docker/api/client.py", line 213, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

fireynis avatar Nov 03 '20 18:11 fireynis

OSX here (10.15.7) and get the "Failed to ping backend API" error. Resetting Docker just hangs it and you have to force quit the application. Was working prior to latest update.

Valien avatar Nov 03 '20 22:11 Valien

I uninstalled Docker and reinstalled it and it seems like it is working again. Something must have gone wrong in the update.

fireynis avatar Nov 04 '20 16:11 fireynis

Update: I reinstalled an older version of Docker Desktop and it now launches. Apparently the latest update doesn't support my MacOS version (10.13.6 High Sierra), only 10.14 and up.

asor12 avatar Nov 04 '20 18:11 asor12

I uninstalled Docker and reinstalled it and it seems like it is working again. Something must have gone wrong in the update.

Reset to factory defaults from the troubleshoot menu worked for me

Farkal avatar Nov 05 '20 14:11 Farkal

same issue, mojave 10.14.6 tried dragging app to trash, as well as ~/Libraries/Application Support/Docker then re-installing the new docker then rebooting then trying to launch the app Does not correct the problem hangs on Diagnostics or Reset to Factory Defaults

Dialog displays:

Fatal Error

Failed to ping backend API

From the console log, filtering on "Docker" a couple of events of note

  • [ERROR] Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for ACC:{ID: com.docker.docker, PID[5270], auid: 607088425, euid: 607088425, binary path: '/Applications/Docker.app/Contents/MacOS/Docker'}, REQ:{ID: com.apple.appleeventsd, PID[72], auid: 55, euid: 55, binary path: '/System/Library/CoreServices/appleeventsd'} ...
  • starting backend server
  • started port-forwarding control server on vpnkit.port.sock ...
  • LSExceptions shared instance invalidated for timeout.

mcooperman avatar Nov 09 '20 15:11 mcooperman

same issue, mojave 10.14.6 tried dragging app to trash, as well as ~/Libraries/Application Support/Docker then re-installing the new docker then rebooting then trying to launch the app Does not correct the problem hangs on Diagnostics or Reset to Factory Defaults

Dialog displays:

Fatal Error

Failed to ping backend API

From the console log, filtering on "Docker" a couple of events of note

  • [ERROR] Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for ACC:{ID: com.docker.docker, PID[5270], auid: 607088425, euid: 607088425, binary path: '/Applications/Docker.app/Contents/MacOS/Docker'}, REQ:{ID: com.apple.appleeventsd, PID[72], auid: 55, euid: 55, binary path: '/System/Library/CoreServices/appleeventsd'} ...
  • starting backend server
  • started port-forwarding control server on vpnkit.port.sock ...
  • LSExceptions shared instance invalidated for timeout.

more info on signatures / authorization some of the items in the Docker.app bundle show issus

from taccy:

App path: /Applications/Docker.app app ID: com.docker.docker version: 2.5.0.0 build: 49427 SDK version: macosx10.15 ( i am on macosx10.14.6 )

Usage Descriptions:

Entitlements: com.apple.developer.team-identifier : 9BNSXJN65R com.apple.security.app-sandbox : 0 com.apple.security.files.user-selected.read-write : 1 com.apple.security.application-groups : (     "group.com.docker" ) com.apple.application-identifier : 9BNSXJN65R.com.docker.docker keychain-access-groups : (     "9BNSXJN65R.com.docker.docker" )

App signature check: /Applications/Docker.app: accepted source=Notarized Developer ID override=security disabled origin=Developer ID Application: Docker Inc (9BNSXJN65R)

codesign check: Executable=/Applications/Docker.app/Contents/MacOS/Docker Identifier=com.docker.docker Format=app bundle with Mach-O thin (x86_64) CodeDirectory v=20500 size=112317 flags=0x10000(runtime) hashes=3501+5 location=embedded Hash type=sha256 size=32 CandidateCDHash sha1=cf5d03b3110efb402455523024a3e7732f7f2cbf CandidateCDHash sha256=699188883ed16d116a54ae2041ba36f931a394e3 Hash choices=sha1,sha256 CDHash=699188883ed16d116a54ae2041ba36f931a394e3 Signature size=9001 Authority=Developer ID Application: Docker Inc (9BNSXJN65R) Authority=Developer ID Certification Authority Authority=Apple Root CA Timestamp=Nov 2, 2020 at 10:04:59 AM Info.plist entries=46 TeamIdentifier=9BNSXJN65R Runtime Version=10.15.4 Sealed Resources version=2 rules=13 files=14355 Internal requirements count=1 size=212

from signet:

Code signature scan of all bundles in the folder /Applications/Docker.app:

/Applications/Docker.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app is Notarized. /Applications/Docker.app/Contents/Library/LoginItems/DockerHelper.app is Notarized. /Applications/Docker.app/Contents/MacOS/Docker Desktop.app is Notarized. /Applications/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Frameworks/Docker Desktop Helper (GPU).app is Notarized. /Applications/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Frameworks/Docker Desktop Helper (Plugin).app is Notarized. /Applications/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Frameworks/Docker Desktop Helper (Renderer).app is Notarized. /Applications/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Frameworks/Docker Desktop Helper.app is Notarized. /Applications/Docker.app/Contents/Resources/bin/docker-compose error -67056 code has no resources but signature indicates they must be present /Applications/Docker.app/Contents/Resources/snyk/docker/cli error getting code 100021 /Applications/Docker.app/Contents/Resources/snyk/docker/node-v12.18.3-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/gyp error -67062 code object is not signed at all /Applications/Docker.app/Contents/Resources/snyk/docker/node-v12.18.3-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/gyp/samples error -67062 code object is not signed at all

Found 4 bundle signing errors out of 31 scanned in /Applications/Docker.app Checked at Monday, November 9, 2020 at 11:15:02 AM Eastern Standard Time

mcooperman avatar Nov 10 '20 00:11 mcooperman

Same issues here with Failed to ping backend API

Then when you try to Diagnose & Feedback it just beach balls.

So frustrating.

Valien avatar Nov 11 '20 16:11 Valien

Same issue.

macOS Catalina Version 10.15.7 with Docker Desktop stable version for macOS

Screen Shot 2020-11-16 at 15 39 39

Reboot, Reinstall doesn't work. Reset Docker to factory defaults, Diagnose & Feedback ends with no response.

Peresh avatar Nov 16 '20 07:11 Peresh

same here. Uninstall, reinstall, reboot, reset docker to factory defaults doesn't work. macOS 10.15.7

keo avatar Nov 22 '20 21:11 keo

same here too. I tried reset docker to factory defaults, uninstall reinstall, reboot, uninstall and reinstall again, doesn't work. 10.15.7 MacOS.

stofancy avatar Nov 24 '20 14:11 stofancy

Same here, 10.15.7 MacOS I've also tried uninstalling, reinstalling, resetting to factory defaults - all of it doesn't work.

arich-medavie avatar Nov 24 '20 15:11 arich-medavie

Same issue here, any updates, please?

luispcosta avatar Dec 01 '20 17:12 luispcosta

luispcosta, I was only able to relaunch Docker by installing a previous version (used one from last year, when I knew it was working). I haven't tried updating since.

asor12 avatar Dec 01 '20 18:12 asor12

Tried Edge yesterday. Rebooted and everything. Still not working.

Valien avatar Dec 01 '20 20:12 Valien

@asor12 that's what I ended up doing as well. Not a solution though...

luispcosta avatar Dec 02 '20 08:12 luispcosta

I had this problem, and appeared to get past it?

I ran /Applications/Docker.app/Contents/MacOS/Docker --uninstall from the troubleshooting steps two or three times, it would hang and sometimes error out with "docker.SettingsError error 2" but it must have done something. I then dragged my old Docker.app to the trash.

After doing this, I dragged in the latest stable, non-edge Docker.app and ran it, it installed the networking tools and started working again.

Heanthor avatar Dec 03 '20 16:12 Heanthor

Running Docker version 19.03.13 on macOS Catalina, version 10.15.7

I had this problem today after my computer attempted to update its OS the previous night. The computer couldn't update because an app failed to close (got stuck on the "save your work" prompt).

Updated successfully after I closed it. On reboot, Docker threw the "Failed to ping backend API" error when I tried to open Docker Desktop. It hanged when I tried to close it.

Since rebooting didn't help, I thought it could have been a permissions issue (I was messing with permissions when I was configuring file sharing).

First, I killed the hanging process using top | grep "Docker" then kill <pid here>. Then, I went to my root folder in Finder, made sure permissions for my user were "Read & Write", and that those permissions were applied to items enclosed.

I tried starting Docker Desktop again and it worked.

tsclay avatar Dec 07 '20 15:12 tsclay

^ This was my issue too. Thanks!

arkanath avatar Dec 18 '20 02:12 arkanath

My fix was similar - my Mac mysteriously booted me to the login screen out of the blue (maybe to apply a system update?) and when I logged back clicking the Docker Desktop dashboard did nothing. After seeing @tsclay 's post, I did ps aux | grep -i 'docker' and saw many instances of /Applications/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Frameworks/Docker Desktop Helper (Renderer).app/Contents/MacOS/Docker Desktop Helper (Renderer) running. I ran osascript -e 'quit app "Docker"' to stop the Docker engine, then I manually ran kill <pid> on all the rogue Desktop Helper processes. I started Docker Desktop back up, and things worked.

mieubrisse avatar Jan 05 '21 01:01 mieubrisse