Skip to content
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

[macOS] Add Docker to macOS #2150

Closed
2 of 7 tasks
karimhm opened this issue Nov 27, 2020 · 9 comments
Closed
2 of 7 tasks

[macOS] Add Docker to macOS #2150

karimhm opened this issue Nov 27, 2020 · 9 comments

Comments

@karimhm
Copy link

karimhm commented Nov 27, 2020

Tool information

  • Tool name: Docker
  • Tool license: Enterprise
  • Add or update? Add
  • Desired version: Any
  • Approximate size: 1.7 GB
  • If this is an add request:

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Tool installation time in runtime
Approximately 10 minutes.

Are you willing to submit a PR?
No.

I am aware about the previous discussion:

Unfortuately the docker community licensing is such that we are not able to install the docker for mac on our hosted runners. We have had some discussions with Docker about doing this but they have held firm on their request that using Docker on a service requires an enterprise license and docker enterprise is not at all supported on macOS.

For Windows Microsoft holds the license for Docker Enterprise on Windows so we do not have any issues there and for Linux we use a specific build of Docker for Linux that is built and maintained by Azure.

But things changed and Docker offer an enterprise edition now

According to Docker:

Docker Desktop Enterprise for Mac is an easy-to-install desktop app for building, debugging, and testing Dockerized apps on a Mac.

@karimhm karimhm changed the title Add Docker to macOS [macOS] Add Docker to macOS Nov 27, 2020
@maxim-lobanov
Copy link
Contributor

maxim-lobanov commented Nov 27, 2020

@karimhm , thank you for raising feature request.
As I can see, Docker Desktop Enterprise is distributed with EULA license too. As far as I know, it doesn't allow us to install it since CI machine is not the end user in this chain.

By downloading this, you agree to the terms of the Docker Software End User License Agreement and the Docker Data Processing Agreement (DPA).

@alepauly @chrispat do you have any thoughts about it? Should we engage legal team to take a look deeper?
On Windows, we install Docker via https://github.com/OneGet/MicrosoftDockerProvider but not sure how we deal with license.

@miketimofeev
Copy link
Contributor

@karimhm you can try this guide to install docker by yourself. Virtualbox is already installed on the images. Other software will be installed in the runtime.
In the meantime, as @maxim-lobanov said we'll investigate license restrictions a bit deeper.

@chrispat
Copy link
Member

Docker Desktop for Mac is an end user tool for developing with docker on your Mac. To my knowledge the license restriction are still in place because Docker Desktop for Mac contains closed source software that is licensed independently from the core docker engine and CLIs. As for Windows we that license is offered by Microsoft and we have been given clearance to use it.

@karimhm
Copy link
Author

karimhm commented Nov 30, 2020

Docker Desktop for Mac is an end user tool for developing with docker on your Mac. To my knowledge the license restriction are still in place because Docker Desktop for Mac contains closed source software that is licensed independently from the core docker engine and CLIs. As for Windows we that license is offered by Microsoft and we have been given clearance to use it.

😭

@maxim-lobanov
Copy link
Contributor

I am closing the issue since we can't bake this tool into the image due to license issue. Hope something will be changed in future.

dtrifiro added a commit to iterative/pytest-servers that referenced this issue Aug 22, 2022
dtrifiro added a commit to iterative/pytest-servers that referenced this issue Aug 22, 2022
@mvgijssel
Copy link

Solved this using https://github.com/abiosoft/colima (example: vgijssel/setup@dab0918).

Would it be possible to bake a tool like this in the macOS base image? 🤔.

@miketimofeev
Copy link
Contributor

@mvgijssel how long does it take to install the tool in runtime? Looks like it's really popular so we can consider adding it if the installation time in runtime is long enough. Feel free to create a new issue using the Tool request template

@mvgijssel
Copy link

@mvgijssel how long does it take to install the tool in runtime? Looks like it's really popular so we can consider adding it if the installation time in runtime is long enough. Feel free to create a new issue using the Tool request template

Looking at the last two GitHub action runs, it takes about ~1 minute to run

brew install docker colima

Personally, I think saving 1 minute on each execution would be a big win for me 😍.

@mvgijssel mvgijssel mentioned this issue Sep 11, 2022
2 tasks
@mvgijssel
Copy link

Submitted colima as a tool request! #6216

efiop added a commit to iterative/pytest-servers that referenced this issue Sep 22, 2023
MacOS images now come with colima installed actions/runner-images#2150
efiop added a commit to iterative/pytest-servers that referenced this issue Sep 22, 2023
MacOS images now come with colima installed actions/runner-images#2150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants