Skip to content

podman suport, using podmans docker compatibility mode nearly works but crashes Overview and Containers pages #181

@Wabuo

Description

@Wabuo

Describe the bug
Feature request/help me debug

Make dockerman work with podmans docker compatibility mode / help me debug.
Currently, most things work, but the Overview and Containers pages crash.

This would be awesome because podman works with nftables if you "manually" configure the network, and podman provides the possibility to run containers as none root user aka unprivileged containers.

What did I do to test this

  1. Install podman according to this guide https://openwrt.org/docs/guide-user/virtualization/docker_host#podman
  2. Don't worry about the configuration files, they get installed by the packages looking exactly like the example ones in the guide. Except for the ones that define a specific container.
  3. Force remove the docker package with opkg remove docker --force-depends
  4. Create a one-line shell scrip wrapper called docker in /usr/bin/docker according to this guide https://podman-desktop.io/docs/migrating-from-docker/emulating-docker-cli-with-podman.
#!/bin/sh
[ -e /etc/containers/nodocker ] || \
echo "Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.>
exec podman "$@"
  1. Create a symbolic link from /var/run/docker.sock to /run/podman/podman.sock ln -s /var/run/docker.sock /run/podman/podman.sock
  2. enable the podman service /etc/init.d/podman enable
  3. If /var isn't persistent, add the symlink creation to your /etc/rc.local
/etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

## Podman

# create podman docker emulation socket
ln -s /run/podman/podman.sock /var/run/docker.sock

...
  1. reboot and test dockerman.



PS: I'm willing to create a proper podman-docker compatibility package for OpenWrt, but would like to get dockerman working first.

Version information

  • openwrt version: 23.05.2
  • luci version: git-23.051.66410-a505bb1
  • docker daemon version: -
  • podman version: 4.8.0-1
root@OpenWrtR4S ~# podman version
Client:       Podman Engine
Version:      4.8.0
API Version:  4.8.0
Go Version:   go1.21.5
Built:        Tue Dec 19 02:55:03 2023
OS/Arch:      linux/arm64
  • dockerman version: v0.5.13-20230114

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions