6 ms·
What's Docker Desktop exactly?
by warinukraine 4y ago
What's Docker Desktop exactly?
- thefounder 4y agoThe thing that I have to install on MacOS so that I can run docker. Is there any other way(i.e no gui utility) ?
- brianwawok 4y agoLinux I just install some stuff from apt, so I assume you can brew install something to run it command line (no GUI)
- ahepp 4y agoDocker uses container functionality specific to the Linux kernel. So on Linux, you can install a relatively lightweight engine. But on MacOS or Windows, you need to install the entire "Docker Desktop" app, which secretly spins up a Linux VM in the background, and presents a (pretty poor) abstraction as if this is all running on the host machine.
- uberduper 4y agodocker-machine from brew sets up the linux vm using one of a few virtualization options. iirc I always used bhyve and never had to give it a second thought.
- kaashif 4y agoOn Windows, you don't really need to use Docker Desktop, I personally find it more convenient to run just plain old Docker in WSL. It's still a Linux VM, but you get more control over it. I never understood what the point of Docker Desktop was on Windows if WSL exists.
- CoolCold 4y agobased on other comments here, there are cases when people like/need GUI part
- justahuman74 4y agoI use podman: https://podman.io/getting-started/installation#macos https://podman.io/getting-started/installation#macos Its CLI is similar/same as docker
- avel 4y agoRancher desktop, or (my preferred) colima + docker cli.
- warinukraine 4y agoWhat do you mean? I just do `apt install docker`.
- mynameisvlad 4y ago> The thing that I have to install on MacOS so that I can run docker. There is no apt on macOS.
- warinukraine 4y ago[flagged]
- mardifoufs 4y agoThe parent comment was talking about Docker desktop, which is clearly targeted at macos and windows. Saying that you can just download it with an apt command is irrelevant to the discussion, because we can't use that outside of linux.
- warinukraine 4y ago> which is clearly targeted at macos and windows I didn't know what it was, so I didn't know it was only for macos and windows. If instead of being sarcastic he had just answered my question, I wouldn't have said something irrelevant.
- mynameisvlad 4y agoYou asked a question which literally has no relevancy to or answer in macOS. There is no apt. There is no default package manager. There is no equivalent command to run on a new system. If you wanted a real answer, you should have asked a real question. Something like, are there any options other than docker desktop for macOS?
- warinukraine 4y ago
- paulryanrogers 4y agoPodman and Podman Desktop?
- mynameisvlad 4y agoYou can use Colima to get the same functionality, minus auto-start on boot. https://github.com/abiosoft/colima https://github.com/abiosoft/colima
- nerdponx 4y agoI had problems pushing to AWS ECR from Colima and had to switch back to Docker Desktop. But for day-to-day usage it seemed to work great.
- mynameisvlad 4y agoI had to manually ln colima’s docker.sock to the default to get AWS SAM to work. Regardless of setting the env variable or docker context, it would always try to use the default docker.sock. Might be a similar issue for ECR.
- nerdponx 4y agoYep, that sounds exactly like the issue I had. You linked the Colima socket to the Docker socket location?
- mynameisvlad 4y agoSorry for the late reply, but yep! It's the "if all else fails" instruction from their FAQ: https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#can...
- deleted 4y ago[deleted]
- paulmd 4y agoyour question is confusing, docker-desktop is a gui utility. rancher-desktop is the equivalent to that. if you don't want a command line, docker itself (the underlying utility that the docker-desktop GUI drives) is free, in contrast to the GUI portion. Or kubernetes. so the direct answer is "brew install docker".
- paxys 4y agoNope, none of this is correct. Docker only runs on Linux. The core purpose of Docker Desktop (and similar tools) is to spin up a Linux VM under the hood and manage its lifecycle, route network calls, share volumes etc. You can do all of this yourself of course, but it will be a non-trivial amount of effort to set it up. "brew install docker" is just another way to install Docker Desktop. It does not run Docker natively on MacOS, because that is impossible.
- ahepp 4y agosimilarly, `brew install podman` will install something a lot like Docker Desktop
- paulmd 4y ago> "brew install docker" is just another way to install Docker Desktop. No, it's not! that would be "brew install homebrew/cask/docker". As you can see here! https://formulae.brew.sh/cask/docker https://formulae.brew.sh/cask/docker This is the docker CLI utility, ie "brew install docker" which is what I said: https://formulae.brew.sh/formula/docker https://formulae.brew.sh/formula/docker Again, please actually look at the commands you are referencing before spreading misinformation, you are confidently incorrect and being rude about it. Not only that but the information you are providing has legal implications because these two (completely different!) pieces of software have different licensing... docker-desktop is commercial license, not open-source! You clearly do not understand the distinction here between the docker CLI utility and backend, and the docker GUI application, and it's very important here. rancher-desktop is the equivalent to docker-desktop, ie the commercial portion, and docker itself can be used freely because it is (as I said) open source.
- paxys 4y agoThe only way to get Docker to work on MacOS and Windows is to spin up a linux VM, install Docker in that VM, and pipe through all the calls to it. You can always do this manually using your VM of choice. There are a bunch of tools which make this more seamless, Docker Desktop being one of them. Alternatives are Podman, Colima, Rancher Desktop, all of them with their own pros and cons.
- uberduper 4y agoYou've been able to `brew install docker-machine` for like 10 years. Docker Desktop just gave you a UI for stopping and starting things. Eventually they added some kubernetes stuff and a kubernetes context switcher. Dunno what else it did since I always installed via brew. I would have been a docker desktop user for years but the one time I went to install it they required me to create an account to get to the download.
- fellellor 4y agoRancher desktop (gui), colima (no gui)
- bart_spoon 4y agoI have found Colima to be a pretty hassle free alternative: https://github.com/abiosoft/colima https://github.com/abiosoft/colima
- ketralnis 4y agohttps://www.docker.com/products/docker-desktop/ https://www.docker.com/products/docker-desktop/