You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Command-line Arguments for /Applications/Docker.app/Contents/MacOS/Docker #2359
but only because I happened to find a reference to them in #882 (comment)
Currently I can sudo run /Applications/Docker.app/Contents/MacOS/Docker --unattended
in a headless environment, but only with sudo, and really want to know how to do it to set up docker for a normal user. (For testing on CircleCI)
Actual behavior
Information
Full output of the diagnostics from "Diagnose & Feedback" in the menu
A reproducible case if this is a bug, Dockerfiles FTW
Page URL if this is a docs issue or the name of a man page
Steps to reproduce the behavior
...
...
Reacted by Mark Thomas Marcantano, Cameron Eagans, Jim Montgomery, Jan-Eric Duden, AJ Slater, Gabriel Le Breton, Jonathan Boudreau, Dario Farzati, Andrey Kartashov, Roberto Hidalgo and 7 more
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale
I just learned about the --unattended parameter a bit like you and was curious if I could run Docker for mac on Travis, but that's not possible due to Incompatible CPU:
+brew cask install docker
==> Satisfying dependencies
==> Downloading https://download.docker.com/mac/stable/23751/Docker.dmg
==> Verifying checksum for Cask docker
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'.
🍺 docker was successfully installed!
+docker system info
+sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended
+sleep 1
Settings: >>> New settings saved <<<
Settings: linuxDaemonConfigCreationDate : 2018-07-26 15:40:23 +0000
Settings: <<< New settings saved >>>
CrashReport: stderr redirected to /var/root/Library/Group Containers/group.com.docker/DockerAppStderr.txt
FeaturesStateLoader: featuresState saved
AppDelegate: Application version: 18.03.0-ce-mac60 (23751)
AppDelegate: Channel: stable
AppDelegate: Administrator user: true
OSX Version: Version 10.13.3 (Build 17D47)
Terminator: Incompatible CPU detected.
We are sorry, but your hardware is incompatible with Docker for Mac.
Docker requires a processor with virtualization capabilities and hypervisor support.
To learn more about this issue see:
[https://docs.docker.com/docker-for-mac/troubleshoot](https://docs.docker.com/docker-for-mac/troubleshoot/#incompatible-cpu-detected)
@gwynne's work around is awesome and we can confirm it is working for us on macOS 11.16.1 w/ Docker Desktop 4.1.0 🚀 (huge thanks for that! 🙏 )
note: after a system reboot, the license accept didn't "stick" and the re-launched Docker.app prompted for license acceptance. I'm guessing if one always opened Docker.app with the --unattended and --accept-license flags that this would continue to Just Work™️, but note that launching with this workaround doesn't appear to permanently dismiss the prompt.
@gwynne's solution did work for me as well, although indeed it took 9m49s to run 😭
The previous script I was using took about 1m30s, but well at least this new one works.
Every independent developer needs to do this on Github Actions, which is a bit ridiculous...
Why not just allow them to preinstall the software?
the above comment worked great, but I happened to have HOMEBREW_CASK_OPTS="--appdir=~/Applications", so the app directory where the docker cask gets installed is a bit different. In that respect, I updated the script a bit to lookup the appdir.
@stephen-turnerinstallation is fixed. I don't see anything in the docs about how to start Docker Desktop from the command line. Am I just missing something? This issue is largely about being able to start/stop Docker Desktop. DDEV's tests would be far more stable if I could stop and start Docker Desktop before every test run.
Activity
docker-robott commentedon Apr 16, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with
/remove-lifecycle stalecomment.Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an
/lifecycle frozencomment.If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale
GabLeRoux commentedon Jul 26, 2018
I just learned about the
--unattendedparameter a bit like you and was curious if I could run Docker for mac on Travis, but that's not possible due toIncompatible CPU:rfay commentedon Feb 3, 2019
/remove-lifecycle stale
rfay commentedon Feb 3, 2019
/lifecycle frozen
rfay commentedon Feb 27, 2019
For the basic question of "How to install docker-for-mac from the command line" this currently works:
https://github.com/drud/ddev/blob/fe1b8ddbfeb322e4966b31c5654362f6a0b022be/.circleci/macos_circle_vm_setup.sh#L11-L13
rfay commentedon Jul 31, 2019
Unfortunately, this ceases working in Docker Desktop for Mac 2.1.0.0 (docker v19.03.1). Now you get the error message:
Which breaks our CI :( For now, I can download earlier version, but Docker folk... please tell us how to do an unattended installation!
rfay commentedon Jul 31, 2019
/remove-lifecycle frozen
rfay commentedon Jul 31, 2019
/iifecycle frozen
apolishch commentedon Oct 5, 2019
Any plans to get this addressed? I'm still being hit with this in CI
msmoljan commentedon Nov 22, 2019
Fixing this would be extremely helpful for our CI workflow too.
Currently I'm using this workaround from @rfay as a temporary fix:
https://github.com/drud/ddev/pull/1748/files#diff-19288f650af2dabdf1dcc5b354d1f245
39 remaining items
armenzg commentedon Oct 27, 2021
I've verified that @gwynne 's fix works on Github's macos-11 runners.
knksmith57 commentedon Nov 4, 2021
@gwynne's work around is awesome and we can confirm it is working for us on macOS
11.16.1w/ Docker Desktop4.1.0🚀 (huge thanks for that! 🙏 )note: after a system reboot, the license accept didn't "stick" and the re-launched
Docker.appprompted for license acceptance. I'm guessing if one always openedDocker.appwith the--unattendedand--accept-licenseflags that this would continue to Just Work™️, but note that launching with this workaround doesn't appear to permanently dismiss the prompt.joffrey-bion commentedon Nov 18, 2021
@gwynne's solution did work for me as well, although indeed it took 9m49s to run 😭
The previous script I was using took about 1m30s, but well at least this new one works.
Every independent developer needs to do this on Github Actions, which is a bit ridiculous...
Why not just allow them to preinstall the software?
armenzg commentedon Nov 19, 2021
I filed it here in case you want to up-vote it.
MaceWindu commentedon Nov 19, 2021
@armenzg , that's a wrong place to request it as it's blocked on Docker side by their EULA:
actions/runner-images#4399 (comment)
actions/runner-images#2150 (comment)
armenzg commentedon Nov 19, 2021
Thanks @MaceWindu !
sparty02 commentedon Dec 12, 2021
the above comment worked great, but I happened to have
HOMEBREW_CASK_OPTS="--appdir=~/Applications", so the app directory where the docker cask gets installed is a bit different. In that respect, I updated the script a bit to lookup the appdir.Try alternative
stephen-turner commentedon Apr 8, 2022
This is mostly fixed in Docker Desktop 4.7.0. Let's move the discussion to docker/roadmap#80.
rfay commentedon May 6, 2022
@stephen-turner installation is fixed. I don't see anything in the docs about how to start Docker Desktop from the command line. Am I just missing something? This issue is largely about being able to start/stop Docker Desktop. DDEV's tests would be far more stable if I could stop and start Docker Desktop before every test run.
stephen-turner commentedon May 6, 2022
You're right, we don't have that part yet, that's docker/roadmap#172.
docker-robott commentedon Jun 5, 2022
Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked