←back to thread

1101 points codesmash | 8 comments | | HN request time: 0.709s | source | bottom
1. dktalks ◴[] No.45139130[source]
If you are on a Mac, I have been using OrbStack[1] and it has been fantastic. I spin up few containers there, but my biggest use is just spinning up Alpine linux and then running most of my Docker containers in there.

[1] https://orbstack.dev/

replies(3): >>45139175 #>>45139615 #>>45139872 #
2. dktalks ◴[] No.45139175[source]
Setup is really easy once you install alpine

1. ssh orb (or machine name if you have multiple) 2. sudo apk add docker docker-cli-compose (install docker) 3. sudo addgroup <username> docker (add user to docker group) 4. sudo rc-update add docker default (set docker to start on startup)

Bonus, add lazydocker to manage your docker containers in a console

1. sudo apk add lazydocker

3. classified ◴[] No.45139615[source]
You mean, you let Docker containers run inside the OrbStack container, or how does that work?
replies(1): >>45140413 #
4. ghrl ◴[] No.45139872[source]
I use OrbStack too and think it's great software, both for running containers and stuff like having a quick Alpine environment. However, I don't see the point of running Docker within Alpine. Wouldn't that defeat the optimizations they have done? What benefits do you get?
replies(1): >>45140383 #
5. dktalks ◴[] No.45140383[source]
Many docker containers are optimized to run as Alpine on other systems. You get the benefit that it runs on Alpine itself.
replies(1): >>45140435 #
6. dktalks ◴[] No.45140413[source]
No, you don't run the Docker containers run in OrbStack, you can spin up an Alpine instance and run all docker instance on it.

The benefit is that, Alpine has access to all your local and network drives so you can use them. You can sandbox them as well. It's not a big learning curve, just a good VM with access to all drives but isolated to local only.

replies(1): >>45140479 #
7. dktalks ◴[] No.45140435{3}[source]
edit: [1] https://old.reddit.com/r/docker/comments/e6u2pk/docker_noob_...
8. dktalks ◴[] No.45140479{3}[source]
And you can run Docker inside OrbStack too, it is really good. But most of my containers are optimized Alpine containers so I prefer to run them on an OS they were built for and others in OrbStack.