Can I run Docker-OSX under podman? #275

Open
opened 2025-12-29 00:22:47 +01:00 by adam · 5 comments
Owner

Originally created by @leiless on GitHub (Nov 15, 2021).

Hi, all. I wonder if I can run Docker-OSX inside podman?

My OS is Ubuntu 20.04 LTS(x86_64) with Podman 3.3.1

Originally created by @leiless on GitHub (Nov 15, 2021). Hi, all. I wonder if I can run `Docker-OSX` inside podman? My OS is Ubuntu 20.04 LTS(x86_64) with Podman 3.3.1
Author
Owner

@dmann18181 commented on GitHub (Nov 15, 2021):

I am interested in running this inside podman as well.

My OS is Fedora 35(x86_64) with podman 3.4.1

@dmann18181 commented on GitHub (Nov 15, 2021): I am interested in running this inside podman as well. My OS is Fedora 35(x86_64) with podman 3.4.1
Author
Owner

@sickcodes commented on GitHub (Nov 16, 2021):

I haven't used podman before but I assume yes, if it's just a Docker wrapper

@sickcodes commented on GitHub (Nov 16, 2021): I haven't used podman before but I assume yes, if it's just a Docker wrapper
Author
Owner

@bphd commented on GitHub (Mar 17, 2023):

I haven't used podman before but I assume yes, if it's just a Docker wrapper

It's more than a wrapper, and everybody should transit to podman, at least for security purposes, if not philosophical

@bphd commented on GitHub (Mar 17, 2023): > I haven't used podman before but I assume yes, if it's just a Docker wrapper It's more than a wrapper, and everybody should transit to podman, at least for security purposes, if not philosophical
Author
Owner

@leunardo commented on GitHub (Apr 5, 2023):

I managed to make it work on podman + wsl with ubuntu 22.

Had to set podman machine to rootful, otherwise the mac does not have internet access and fails to install the OS. (Probably there is a right way to do it, but this worked for me)

On ubuntu, I ran echo $DISPLAY to find the display config used, which outputs :0. Then I replaced the -e "DISPLAY=${DISPLAY:-:0.0}" for -e "DISPLAY=:0". Using the original command was giving me lkg errors.

Final command was

podman run -it --device /dev/kvm -p 50922:10022 -v /mnt/wslg/.X11-unix:/tmp/.X11-unix -e "DISPLAY=:0" sickcodes/docker-osx:latest
@leunardo commented on GitHub (Apr 5, 2023): I managed to make it work on podman + wsl with ubuntu 22. Had to set podman machine to rootful, otherwise the mac does not have internet access and fails to install the OS. (Probably there is a right way to do it, but this worked for me) On ubuntu, I ran `echo $DISPLAY` to find the display config used, which outputs `:0`. Then I replaced the `-e "DISPLAY=${DISPLAY:-:0.0}"` for `-e "DISPLAY=:0"`. Using the original command was giving me lkg errors. Final command was ``` podman run -it --device /dev/kvm -p 50922:10022 -v /mnt/wslg/.X11-unix:/tmp/.X11-unix -e "DISPLAY=:0" sickcodes/docker-osx:latest ```
Author
Owner

@bphd commented on GitHub (Apr 5, 2023):

I managed to make it work on podman + wsl with ubuntu 22.

Had to set podman machine to rootful, otherwise the mac does not have internet access and fails to install the OS. (Probably there is a right way to do it, but this worked for me)

On ubuntu, I ran echo $DISPLAY to find the display config used, which outputs :0. Then I replaced the -e "DISPLAY=${DISPLAY:-:0.0}" for -e "DISPLAY=:0". Using the original command was giving me lkg errors.

Final command was

podman run -it --device /dev/kvm -p 50922:10022 -v /mnt/wslg/.X11-unix:/tmp/.X11-unix -e "DISPLAY=:0" sickcodes/docker-osx:latest

The project should really shift to PodMan, then after if possible to rootless (by fine tuning things like internet or so)

@bphd commented on GitHub (Apr 5, 2023): > I managed to make it work on podman + wsl with ubuntu 22. > > Had to set podman machine to rootful, otherwise the mac does not have internet access and fails to install the OS. (Probably there is a right way to do it, but this worked for me) > > On ubuntu, I ran `echo $DISPLAY` to find the display config used, which outputs `:0`. Then I replaced the `-e "DISPLAY=${DISPLAY:-:0.0}"` for `-e "DISPLAY=:0"`. Using the original command was giving me lkg errors. > > Final command was > > ``` > podman run -it --device /dev/kvm -p 50922:10022 -v /mnt/wslg/.X11-unix:/tmp/.X11-unix -e "DISPLAY=:0" sickcodes/docker-osx:latest > ``` The project should really shift to PodMan, then after if possible to rootless (by fine tuning things like internet or so)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#275