-
-
Notifications
You must be signed in to change notification settings - Fork 239
Open
Description
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
- Install podman according to this guide https://openwrt.org/docs/guide-user/virtualization/docker_host#podman
- 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.
- Force remove the docker package with
opkg remove docker --force-depends
- 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 "$@"
- Create a symbolic link from /var/run/docker.sock to /run/podman/podman.sock
ln -s /var/run/docker.sock /run/podman/podman.sock
- enable the podman service
/etc/init.d/podman enable
- 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
...
- 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
bademux
Metadata
Metadata
Assignees
Labels
No labels