Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ioBroker container run by podman: add some documentation #294

Closed
stuehmer opened this issue Nov 4, 2022 · 1 comment
Closed

ioBroker container run by podman: add some documentation #294

stuehmer opened this issue Nov 4, 2022 · 1 comment

Comments

@stuehmer
Copy link

stuehmer commented Nov 4, 2022

I am looking for fellow users of Podman to share some experiences and possibly add these to the documentation.
I tried adapting the command line docker run [...] docker.io/buanet/iobroker:latest-v7 to podman run [...] docker.io/buanet/iobroker:latest-v7 However during startup I get several occurrences of Operation not permitted.

After diagnosing the problem using https://www.redhat.com/sysadmin/container-permission-denied-errors I narrowed it down to a missing Linux capability NET_RAW which Docker usually allows but with Podman must be enabled specifically. So I ended up at podman run --name iobroker --cap-add net_raw [...] docker.io/buanet/iobroker:latest-v7

Bringing it all together, also using a macvlan network (because I wanted a dedicated DHCP IP address for the container) I ended up at a rootful podman container as follows:

sudo podman run \
  --name iobroker \
  --cap-add net_raw \
  --tty \
  --net macvlan \
  --mac-address=<AA:BB:CC:... a MAC for which I have a DHCP reservation on my LAN> \
  -e SETUID=<UID on host e.g. 998> \
  -e SETGID=<GID on host e.g. 998> \
  --volume iobroker_data_v7:/opt/iobroker:rw,exec \
  --hostname iobroker \
  --label "io.containers.autoupdate=image" \
  docker.io/buanet/iobroker:latest-v7

Any other Podman experience out there?

@buanet
Copy link
Owner

buanet commented Nov 4, 2022

Hi,
at the moment there is no support for running a ioBroker container in podman.

Please do not use the issues for questions or support. Use the discussions instead.
Or better: Join the ioBroker community forum, Discord channel or Facebook group and place your questions there.

As I see no issue here, I will close this now.
Thank you.

Regards,
André

@buanet buanet closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants