4 ms·
My understanding is that this old article is no longer the simplest/easiest way of doing this. For that, see https://marcusnoble.co.uk/2021-09-01-migrating-from
by williamsmj 5y ago
My understanding is that this old article is no longer the simplest/easiest way of doing this. For that, see https://marcusnoble.co.uk/2021-09-01-migrating-from-docker-to-podman/ https://marcusnoble.co.uk/2021-09-01-migrating-from-docker-t.... tl;dr:
$ brew install podman
$ podman machine init
$ podman machine start
$ alias docker=podman
If you're on an M1 you may run into https://github.com/containers/podman/issues/10577 https://github.com/containers/podman/issues/10577 (which is WIP, and may have been resolved by https://github.com/containers/podman/pull/11451 https://github.com/containers/podman/pull/11451).
- arthurcolle 5y agoDoes this work with compose? Probably not but just wondering
- Spivak 5y agopodman-compose is a thing but it’s not feature complete.
- jagger27 5y agoIt more or less works, at least on Linux. https://www.redhat.com/sysadmin/podman-docker-compose https://www.redhat.com/sysadmin/podman-docker-compose
- jeffparsons 5y agoThe problem with making this work, IIRC, is that Docker Compose doesn't actually "compose" Docker commands, but instead _re-implements_ a bunch of functionality itself through its Python libraries. So you'd actually need to bring your own CLI-compatible Docker Compose implementation for Podman rather than just making your Docker replacement compatible.
- judge2020 5y agoPodman solved this by just re-implementing docker’s socket API (which does mean it now requires a daemon to use compose) https://www.redhat.com/sysadmin/podman-docker-compose https://www.redhat.com/sysadmin/podman-docker-compose
- Cu3PO42 5y agoIn addition to the sibling comment (which mentions that you can use the original docker-compose) such a CLI-compatible reimplementation also exists [0]. It's not always a 100% drop-in replacement, but gets you pretty far in my experience. [0] https://github.com/containers/podman-compose https://github.com/containers/podman-compose
- solarkraft 5y agoAnecdotally I can say that I ran into issues with fairly simple files (2 years ago). I’m going to try out the alternatives before coming back to this.
- bloopernova 5y agoThat tl;dr worked great. I'll have to see if there's a Nix package for it tomorrow morning for work.
- acdha 5y agoDoes this actually work for you? I tried it and networking was broken out of the box – it couldn’t even pull a container image. I didn’t have time to spend digging into it, however, and would not rule out that being an artifact of our VPN.
- mroche 5y agoNetworking is working just fine over here; I rebuilt the machine to be using the latest (Sept 4) FCOS stream, but it was fine on the previous version (Aug 21) as well. Are you using short names to pull your images, i.e. 'requarks/wiki:latest' rather than the full path 'docker.io/requarks/wiki:latest'? (Note: official images in Docker Hub are under the 'library/' namespace, e.g. 'library/fedora') Other networking issues, like the port publishing through the host bridging by default without needing to pass '--network' I believe are slated for the upcoming 3.3.2 patch release.
- acdha 5y agoGood to know - I’ll give it another run when I have more time later this week.
- studmuffin650 5y agoOne issue still apparently is that it can’t mount volumes. Though I haven’t had to do that yet. When you attempt to mount a volume it will attempt to do it from within the virtual machine not your machine.
- mroche 5y agoThis is a known issue and is in the process of being figure out how to proceed: https://github.com/containers/podman/issues/8016 https://github.com/containers/podman/issues/8016
- drzaiusx11 5y agoThe issue to watch is here: https://github.com/containers/podman/issues/8016 https://github.com/containers/podman/issues/8016 To be clear volumes are supported, what aren't are "bind mounts" which are not recommended over named volumes: https://docs.docker.com/storage/volumes/ https://docs.docker.com/storage/volumes/ https://docs.docker.com/storage/bind-mounts/ https://docs.docker.com/storage/bind-mounts/
- BlackFingolfin 5y agoI think also this podman blog post from a few days ago is relevant: https://podman.io/blogs/2021/09/06/podman-on-macs.html https://podman.io/blogs/2021/09/06/podman-on-macs.html