pantheon-systems / localdev-issues

Issue tracking for Pantheon localdev
6 stars 2 forks source link

Docker auto-updates and breaks Localdev #106

Open conantp opened 3 years ago

conantp commented 3 years ago

MacOS Big Sir 11.3.1 / LocalDev 1.1.0

When I first open LocalDev, it installs a compatible version of Docker, which is great.

However, Docker now appears to auto-update, so when I quit Localdev, Docker updates itself.

The next time I open LocalDev, the new (3.3.3) version of Docker starts and updates the configuration files.

LocalDev will then reinstall an older version of LocalDev, which then throws a Docker error that the configuration file is incompatible. I tell Docker to "Restore to Factory Defaults," and it hangs.

To resolve the issue, I have to manually update Docker to the latest version (3.3.3), manually uninstall Docker, then open LocalDev and let it install the older version of Docker again. It makes LocalDev basically unusable for me.

tarnus commented 3 years ago

Having the exact issue. Is there a solution yet?

erilot commented 3 years ago

Yeah this is causing major pain here too. It looks like this is breaking a lot of things (see this thread). Right now I have an urgent fix that needs to go up, but I can't use localdev at all and fixing the docker installation will take quite a long time... so I'm falling back to SFTP hackery on a multidev environment.

Docker appears to have stopped forcing the auto-update, but until LocalDev is on the latest version of Docker... we are in this cycle.

girlg33k commented 3 years ago

I'm having the same issue, extremely frustrating.

matthewboman commented 3 years ago

I was able to get it running by deleting Docker, running rm -r ~/Library/Group\ Container/groups.docker.com, and then letting Localdev re-install it. Not a permanent solution but a temporary fix.

mIIwaukee commented 3 years ago

I was able to get it running by deleting Docker, running rm -r ~/Library/Group\ Container/groups.docker.com, and then letting Localdev re-install it. Not a permanent solution but a temporary fix.

I came here to report that this also works for me. Not ideal but a good quick fix.

steviewanders commented 3 years ago

Is this fix still working for people? Could somebody describe their working setup/versions please?

Even when I remove all Docker and let Localdev install it's 2 or 3.x or whatever version, it is reliably broken in a loop showing this error dialog.

Screen Shot 2021-09-01 at 3 46 43 PM
steviewanders commented 3 years ago

A fix for my problem above:

1) Uninstall Docker Desktop and Localdev completely, enjoy the catharsis.

2) Install Docker Desktop 3.1.0 from https://docs.docker.com/desktop/mac/release-notes/#docker-desktop-310.

2) Install Localdev and when it first mentions the Docker version incompatibility you need to select the option that allows you "Unsupported versions" - or if your Localdev is working... goto Settings and select that option.

Screen Shot 2021-09-01 at 5 00 45 PM

Alternatively Lando is being recommended by Pantheon people in their Slack #localdev channel so perhaps save yourself this process :)

stazna01 commented 3 years ago

Right after installing the Docker version with Localdev, immediately

Go into Terminal (change $USER to your username on the machine):

Switch to root user:

Change directory ownership and prevent access to other users (change $USER to your username on the machine):

Now Docker won't have access to download updates since it tries to put them in the folder it can no longer write to.

Slightly adapted instructions from: https://gist.github.com/LeZuse/aad7d02d2ccc564f7fc21f032607b47b

tbriggs-mx commented 2 years ago

As a developer who works with several different environments outside of LocalDev, it's really frustrating that I'm stuck on an outdated version of Docker. I'm also noticing that on macOS Monterey, when I'm running LocalDev, it really bogs down my computer. I have bumbed up the resources in Docker quite a bit, but I'm not seeing much of a difference.