Docker for mac aborts looking for a specific character - docker

I'm running docker for mac with the following version
Docker has recently started failing with the following error message
invalid character 's' looking for beginning of value
I was also recently shown this dialog when trying to shut down docker after receiving the above error message:
I've tried reducing the size of the disk to fully wipe it through the preferences dialog, but that didn't eliminate the issue:
What does this error message mean and how can I resolve it?

Turns out it was because I upgraded to the latest version of Docker for Mac. I downgraded to 4.12.0 and haven't seen the problem since.

Related

Docker desktop / daemon won't start on new M1

When I try to startup Docker Desktop on a new M1Max, it gets a fatal error that the "Docker daemon failed to start". The last log item for the daemon is just a debug message "Calling HEAD /_ping".
I'd like to try to start the daemon manually on my Mac to see if there are better error details, but all of the docs for that mention using dockerd which isn't available on the Mac install.
Background: I just switched from an older MBP to a new M1Max. I replaced my Docker Desktop with the new version for Apple Silicon and everything started up fine. However, some of my containers were having issues on the new arch. While debugging those issues, I restarted Docker Desktop and began experiencing this issue. I've tried restarting my mac, but it just gives me the same error again. I've tried downgrading Docker Desktop to the last handful of older versions and still get the same message. The strange thing is that my log file for dockerd hasn't been touched since before I restarted Docker Desktop when I first encountered the error. It's like the daemon isn't even trying to start anymore. Any help would be greatly appreciated.
UPDATE: I just reset my Mac back to my starting point (after using the migration assistant to port my old MBP to the new). When I first install Docker Desktop for Apple Silicon, it starts up normally and everything runs fine. If I check on the dockerd logs, I can see it being written to. However, as soon as I restart Docker Desktop, I get the error mentioned above and dockerd stops writing to logs. Then, every time I try to start Docker Desktop, it errors with the message above.
do the following
clean uninstall docker either using brew/appcleaner
Manually install 4.5.0 M1 - https://docs.docker.com/desktop/mac/release-notes/
that is after manually installing ensure to uncheck automatic software update from setting
!! It worked for me !!

"Not connected to Docker" in Intellij even though "Connection successful"

I am new to using Docker with Intellij and am using default auto-generated settings. For a new Docker Run configuration we can see the Dockerfile was selected - and crucially the default MacOS Docker Server was selected:
The connection is successful:
However when I attempt to run this configuration an error message and/or dialog box saying "Not connected to docker"
Am i missing a step? What needs to be done to be able to run/debug this Docker image?
The lead QA at JetBrains #CrazyCoder (and highly prolific Answerer here on SOF) requested a bug submission for this : it is at https://youtrack.jetbrains.com/issue/IDEA-277307.
Update: the very very latest version of IJ 20.2.1 has this completely fixed ! The two-weeks ago version was mine at 20.2 (new laptop install) so that minor release did the job!

Docker Desktop pull fail with "unexpected eof"

I´m facing the Problem that I can´t pull some Docker images and docker login also works just sometimes.
This occurs only under Windows 10 Pro. I also tested it under Linux and it worked with default configuration.
I´ve already searched for the solution here, but my network connection isn´t the problem, since Linux works on the same network and I also don´t use any Proxy Server which I have to configure.
I´m trying to execute docker pull postgres. The output is:
Error response from daemon: Get https://registry-1.docker.io/v2/library/postgres/manifests/latest: Get https://auth.docker.io/token?account=unkownuser&scope=repository%3Alibrary%2Fpostgres%3Apull&service=registry.docker.io: unexpected EOF
Other images fail also with the same error and sometimes even the docker login fails with the unexpected EOF error.
Everything worked fine since the last update.
I´ve already downgraded my version, but it didn´t help. I also tried to switch from windows to linux containers, no effect.
Does anybody else have this problem or did I do something wrong?
Do you use a FritzBox?
If yes try the following it helped me:
Log into your FritzBox
In the bottom left Corner is a Button called Content (I assume its called that. I got the German version which says "Inhalt")
Click "FRITZ!Box Support"
Disable Hardware acceleration

Visual Studio Tools for Docker - PrepareForCompile task failed unexpectedly

I took a clean machine (Windows 10 Enterprise w/out the Anniversary Update) and installed (in this order) Full IIS, Hyper-V, VS2015 Enterprise, .NET Core 1.0.1 Tooling Preview 2, Docker for Windows, Visual Studio Docker Tools, and a few other random programs.
I then opened VS2015 and created a default .NET core website. When I run (F5) all works as expected. I then right clicked on the project and went to Add->Docker Support. Now when trying to run (F5) using Docker I see this error message:
MSB4018 The "PrepareForCompile" task failed unexpectedly.
Microsoft.DotNet.Docker.CommandlineClientException: Error response
from daemon: Container ... is not running at ...
I have searched online and the only thing I can find that might explain it is that I don't think Shared Drives are working. I did set it up in Docker->Shared Drives, but when I run:
docker run --rm -v c:/Users:/data alpine ls /data
the response is empty.
Likewise when I try using busy box the directory is empty.
docker run -it -v /C/Users:/wormhole busybox
cd wormhole
ls
I have tried using Windows Desktop for Docker 1.12.1-stable and beta 26. Both have the same issue.
Some have indicated that Antivirus could cause a problem. I do have Mcafee installed, but I cannot uninstall or disable the antivirus software.
Some have suggested that passwords with unusual characters can cause this issue but that does not apply here.
I don't know that shared drives are causing the VS2015 error, but it seems like a good place to start since shared drives are broken.
I have restarted bot hdock and the computer many times, to no avail.
Any Ideas?
I had the same issue.
In order to fix it I found the container referenced by the id in the stack trace. Then I removed it:
docker rm <containerid>
When I tried running from VS 2015 again it worked. I don't know what initially caused the issue.
I just wanted to add since I also stumbled upon this issue. I had a clean Win 10 machine, and I just had to enable the "Shared Drive" setting in docker:
This may not be the actual problem that you're facing (Thankfully you fixed it!); this is just for people that may not have this enabled!

Running HHVM's "hh_server" tool inside Docker container fails

Running HHVM's hh_server tool in Docker fails with following error:
Fatal error: exception Not_found.
Same tool works fine in the host with same OS (Ubuntu 14.04) and HTTP server (nginx).
Any idea how this might occur?
I had the exact same problem on a Debian image. After talking to a guy at hhvm's IRC channel I got it working by setting the USER environment variable to a username. Apparently hh_server don't work if USER is empty

Resources