I know people doing docker dev are generally targeting a Linux of some sort, but why the heck doesn't the macOS kernel support native containerization? Come on Apple. Microsoft can do it. edit: this seems like a new development since my last whine/complaint on this topic: https://macoscontainers.org/
Docker for Mac Without Docker Desktop
51–60 of 198 posts
Re: Docker for Mac Without Docker Desktop
#52Re: Docker for Mac Without Docker Desktop
#53I've been exploring 2 alternatives (podman and colima) to replace my normal docker workflow, which is just building and running containers locally, sometimes with docker-compose. I started with podman but had issues with 2 main pieces of my workflow: docker-compose (or podman-compose) and shared volumes (with `run -v`). Switched over to colima and those worked out of the box for me ("brew install docker; brew install…
#!/bin/bash
set -e
tmpdir=$(mktemp -d)
port=$(podman system connection ls | grep -Eo 'localhost:\d+' | head -1 | cut -d: -f2)
[[ -n $port ]] || exit 1
ssh -fnNT -L"$tmpdir/podman.sock":/run/user/1000/podman/podman.sock -i ~/.ssh/podman-machine-default ssh://core@localhost:"$port" -o StreamLocalBindUnlink=yes
export DOCKER_HOST="unix:///$tmpdir/podman.sock"
docker-compose "$@"
rm -r "$tmpdir"Re: Docker for Mac Without Docker Desktop
#545. Install Docker Machine docker-machine The last time one of these discussions came up and a similar solution was provided, someone pointed out that 'docker-machine' is not a dependable solution. I can't remember the exact reason, nor can I find the link, but it was something along the lines of Docker making it proprietary or abandoning the project. Can anyone provide any more detail about the state of 'docker-machi…
Re: Docker for Mac Without Docker Desktop
#55I know people doing docker dev are generally targeting a Linux of some sort, but why the heck doesn't the macOS kernel support native containerization? Come on Apple. Microsoft can do it. edit: this seems like a new development since my last whine/complaint on this topic: https://macoscontainers.org/
Re: Docker for Mac Without Docker Desktop
#56The heart of this is docker-machine which is deprecated
> Docker Machine has been deprecated. Please use Docker Desktop instead.
Re: Docker for Mac Without Docker Desktop
#57I use Rancher Desktop as an alternative to Docker Desktop. It’s alright.
I just pulled it (and switched to dockerd as default container runtime to use 'docker') - it seems to work as a great swap for docker desktop on mac. I like that volumes work well vs podman. Nice that you an trivy scan an image, etc. Have you hit any sharp edges yet? I imagine there might be a few. Anything you can share would be great
It fails to setup some filesystem links because of Unix permissions. You can fix it in command line. See https://github.com/rancher-sandbox/rancher-desktop/issues/11...
If you put your computer into sleep, the VM time will be out of sync. It's going to be fixed in the next release I believe. It's an old classic bug that happened to me with WSL so it was nice to see it again. https://github.com/rancher-sandbox/rancher-desktop/issues/83...
Re: Docker for Mac Without Docker Desktop
#58I use Rancher Desktop as an alternative to Docker Desktop. It’s alright.
I have just started using it, and I stopped short of telling people it was a great alternative because I don't have enough experience with it yet to say one way or another. But so far it's pretty muchliving up to my expectations, with a few quirks: (1) I can use the buildkit plugin, at least it seems to work so far, but (2) things are not strictly compatible, for example the `kuby build` command has an issue and will…
Re: Docker for Mac Without Docker Desktop
#59Re: Docker for Mac Without Docker Desktop
#60"Motivation: Docker for Mac was proving to be a workflow pain rather than a workflow gain." I feel that pain. I switched from a Linux box to a Mac Mini for ALMOST all the work I do. I just couldn't take the pain, now when I need to do my Docker work, I just flip back to my Linux box. I have a Logi keyboard and Mouse with that 3 device button option, and a monitor with a few inputs, so I just turn on the ol' Linux box…