-
Notifications
You must be signed in to change notification settings - Fork 267
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
Unattended install of Docker Desktop (Windows and macOS) #80
Comments
+1 to this feature request, many times over. The lack of an automated install is a serious pain point for using Docker as part of a CI pipeline. This issue should also be fairly easy for the Docker team to fix, while at the same time being basically impossible to work around in a robust way from the outside. As I said in the older issue thread:
|
You now need a slightly updated version of the above filthy hack in order to successfully install the very latest docker desktop for mac: docker/for-mac#2359 (comment) |
After updating docker to version 3.4.0, the command @telamonian, did you find a way to get around this? |
Installing Docker Desktop for Mac is currently a very volatile experience. See more here: https://github .com/docker/roadmap/issues/80#issuecomment-862521647.
…op for Mac (#21) * Try installing specific Docker version on mac * Fix docker brew formula version * Install Docker v20.10.6 * Fix installing Docker using raw URL Azure Pipelines reports the following error: "Installation of docker from a GitHub commit URL is unsupported". A possible fix is this one: https://stackoverflow.com/a/65946969/5786708 . * Fix installing Docker using raw URL Azure Pipelines reports the following error: "Installation of docker from a GitHub commit URL is unsupported". A possible fix is this one: https://stackoverflow.com/a/65946969/5786708. * Fix brew install command * Fix brew install command, take 2 * Install Docker legacy version which works * Install Docker v20.10.6, take 2 * Install Docker v20.10.6, take 3 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 4 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 5 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 6 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 7 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 8 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 9 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 10 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 11 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker v20.10.6, take 12 Based on this article: https://cmichel .io/how-to-install-an-old-package-version-with-brew/. * Install Docker legacy version which works, take 2 * Disable builds on macOS-based agents Installing Docker Desktop for Mac is currently a very volatile experience. See more here: https://github .com/docker/roadmap/issues/80#issuecomment-862521647. * Remove the link pointing to macOS builds * State the reason for disabling builds on macOS
Any update to this? Being able to default to Windows Containers automatically during install would be appreciated for automated rollouts. Default behavior is that it is spinning up Hyper-V VMs on consumer laptops... |
Good morning. Is there any ETA for implementing what I described in #187 ? |
Can you please implement --windows-containers a flag to the installer. I see there is also --settings parameter but I don't know how to use it to switch to windows containers. Would like to avoid the warning message to install WSL2. |
+1 "Can you please implement --windows-containers a flag to the installer. I see there is also --settings parameter but I don't know how to use it to switch to windows containers. Would like to avoid the warning message to install WSL2." |
Having a switch for accepting license agreement is also needed for this |
Can anyone point me to the docker installer code? I assume some of these items are easier to add but it may require some plumbing through to the engine or they just require setting some config file I assume that isn't much work. |
Colima works with macOS CI and you don't have this problem (and there are not license problems). https://github.com/abiosoft/colima |
This seems to have been addressed in docker for mac 4.7.0, https://docs.docker.com/desktop/mac/install/#install-from-the-command-line Also Windows: https://docs.docker.com/desktop/windows/install/#install-from-the-command-line |
As @rfay says, this is mostly fixed in 4.7.0. We don't have a switch for Windows containers yet. |
+1 for the I am currently using the |
Tell us about your request
There are many situations, but most especially CI test runners, where Docker Desktop needs to be installed unattended. With current versions, that's either impossible or very, very sketchy.
It used to be possible on macOS using the technique in docker/for-mac#2359, but as explained in docker/for-mac#2359 (comment) it was somewhat randomly blocked by an error check on root installs in 2.1.0.0
Which service(s) is this request for?
Docker Desktop for Mac and Docker Desktop for WIndows. macOS is the place I would immediately use it.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
As above, in a CI environment Docker Desktop needs to be installed... by a script.
Are you currently working around the issue?
Currently using pre-2.1.0.0 version of Docker Desktop for Mac
Additional context
While I'd prefer a great solution (explicit, supported unattended install technique), I'm modestly sure that you could just remove the blocker error check, "Running Docker Desktop as root is dangerous. Please run it as a regular user"
The text was updated successfully, but these errors were encountered: