openwrt / openwrt/packages

podman: containers are not started on boot

Open
#29,499 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

podman

Maintainer

@oskarirauta

OpenWrt Version

SNAPSHOT

Steps to Reproduce
  • start some container with Restart policy: unless-stopped:
    podman run imageID --detach --restart unless-stopped
  • reboot
Actual Behaviour

There are no started containers on boot:

$ podman container ls
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
$
Confirmation Checklist

Additional info:
The docs:
https://openwrt.org/docs/guide-user/virtualization/podman#podman_init_script
https://openwrt.org/docs/guide-user/virtualization/docker_host?s%5B%5D=podman#automation
The discussion:
https://forum.openwrt.org/t/guide-running-podman-containers-on-openwrt-24-10-2/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the podman init-script documentation and the linked forum discussion, then reproduce the reported unless-stopped behavior across a reboot. Trace the package's boot startup entry point and verify that a container with that policy is running after boot; confirm the result with podman container ls.

Written by the indexing model from the issue text.

Assessment

Domain
devops, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.