-
Notifications
You must be signed in to change notification settings - Fork 119
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
CLI for Docker For Mac #882
Comments
#412 was resolved in Beta 33 and support was improved in Beta 35 or 36. Do you still need this functionality? |
Yes, I still need this. Quoted from this: https://forums.docker.com/t/how-to-run-docker-for-mac-as-a-service-or-deamon/18728 Expected behaviorThere should be a way to install Docker For Mac as a service which runs at system startup. Actual behaviorDocker for Mac Beta seems to require a ui based app "Docker.app" to run in a graphical user session. I could not figure out any way on how to start the Docker environment using cli tools. InformationWe'd like to use the great "Docker for Mac Beta" asap in a productive environment using the elegant integration with the native MacOS virtualization framework. So it would be of cause more robust and user friendly to install and run Docker and it's containers as system services automatically and independent on a user-login. Is there any recommended way to install and run "Docker for Mac Beta" and its container as a service automatically at system startup? |
There is no short-term plan to add a command-line interface to Docker for Mac, so closing as "won't fix" (at least in the short/middle term). We understand that this is an important component for some use-cases, but we have no plans to work on this currently. |
This is kind of insane. On one side you are developing a tool that is supposed to isolate apps/services and make it easy to deploy them everywhere but if it is about deploying the tool itself on a large number of macOS nodes than that is not supported and won't be. Any plans to make the D4M UI open source so that this feature could be contributed to you? |
Hi Emmanuel,
this is really nice. Seems to work. Do you know whether it is as well
possible to extend for example the file sharing via command line?
Thanks a lot.
Martin
…On Wed, Aug 23, 2017 at 11:30 AM, Emmanuel Briney ***@***.***> wrote:
Hi @martinm82 <https://github.com/martinm82> , we are using that script
in our CI, tell me if it works for you.
I put the latest stable url but we can change it of course.
curl -f https://download.docker.com/mac/stable/Docker.dmg -o Docker.dmg
hdiutil verify Docker.dmg
hdiutil attach Docker.dmg -mountpoint dmg_mount -nobrowse
rm -rf /Applications/Docker.app
mkdir -p /Applications/Docker.app
cp -av dmg_mount/Docker.app/ /Applications/Docker.app
hdiutil detach dmg_mount
rmdir dmg_mount
sudo /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#882 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAlnOmom9Kbr2nc7Q6tMFJiOK_1zLjjiks5sa_EZgaJpZM4KmcHu>
.
|
I really need to install Docker.app via the command line. I use ansible to set up many Mac minis for Continuous Integration and it is not reasonable that I have to log into each machine via VNC to get Docker to completely install. |
@lyndsey-ferguson the argument |
Thanks, I tried that but the Docker.app doesn't stops responding after a few seconds with 0% CPU activity. I left it running for 30 minutes with the thought that it was so busy that it was not responding on the main thread, but the "not responding" status (in the Activity Monitor app) did not change. |
The problem was that, in my experimentation, I had started the |
So in my setup we need to have an open session (logged in) with a specific user. In order to properly configure Docker I need to run the app (with Configuring automatically additional mount points was as well not straight forward but after some time I figured out that the configuration itself is stored in a git repo ( My custom launchd configuration as well looks a bit different:
If I don't specify the additional args I get after a reboot always the welcome dialog and Docker won't start-up (even if I disable the welcome message in the settings.json. |
Thanks @martinm82, I will use that if we experience the same issue. |
We managed to do an unattended install that automatically starts the Docker daemon and launches it on login without the "We are whaly happy to have you" popup. Steps:
The Docker daemon is launched and starts up successfully after reboot. |
As mentioned in #2359 (comment) the
doesn't work any more in Docker Desktop 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! |
Closed issues are locked after 30 days of inactivity. 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. |
CLI for Docker For Mac
Feature Request
Is it possible to have all the features that can be done via the GUI of Docker for Mac to some sort of CLI? This request is coming from an annoying issue from #412 that is holding back people who want to use their containers both for GNU/Linux and MacOS. Thank you!
The text was updated successfully, but these errors were encountered: