home-operations/containers
关于
用于构建应用容器的社区项目
系统与基础设施可以做什么
- Prowlarr, Radarr, Lidarr, and Sonarr only publish the develop branch, not the master (stable) branch.
- qBittorrent is only published with LibTorrent 2.x. See this issue for more information.
实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Containers
An opinionated collection of container images
Welcome to our container images! If you are looking for a container, start by browsing the GitHub Packages page for this repository's packages.
Mission Statement
Our goal is to provide semantically versioned, rootless, and multi-architecture containers for various applications.
We adhere to the KISS principle, logging to stdout, maintaining one process per container, avoiding tools like s6-overlay, and building all images on top of Alpine or Ubuntu.
Features
Tag Immutability
Containers built here do not use immutable tags in the traditional sense, as seen with linuxserver.io or Bitnami. Instead, we insist on pinning to the sha256 digest of the image. While this approach is less visually appealing, it ensures functionality and immutability.
| Container | Immutable |
|---|---|
ghcr.io/home-operations/home-assistant:rolling |
❌ |
ghcr.io/home-operations/home-assistant:2025.5.1 |
❌ |
ghcr.io/home-operations/home-assistant:rolling@sha256:8053... |
✅ |
ghcr.io/home-operations/home-assistant:2025.5.1@sha256:8053... |
✅ |
If pinning an image to the sha256 digest, tools like Renovate can update containers based on digest or version changes.
Rootless
By default the majority of our containers run as a non-root user (65534:65534), you are able to change the user/group by updating your configuration files.
Docker Compose
services:
home-assistant:
image: ghcr.io/home-operations/home-assistant:2025.5.1@sha256:516ae5c85089b3f2960cf2a21dc3c105356969499964fabf0b0358e5f3a7e0a2
container_name: home-assistant
user: 1000:1000 # The data volume permissions must match this user:group
read_only: true # May require mounting in additional dirs as tmpfs
tmpfs:
- /tmp:rw
# ...
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: home-assistant
# ...
spec:
# ...
template:
# ...
spec:
containers:
- name: home-assistant
image: ghcr.io/home-operations/home-assistant:2025.5.1@sha256:516ae5c85089b3f2960cf2a21dc3c105356969499964fabf0b0358e5f3a7e0a2
securityContext: # May require mounting in additional dirs as emptyDir
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- name: tmp
mountPath: /tmp
# ...
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000 # (Requires CSI support)
fsGroupChangePolicy: OnRootMismatch # (Requires CSI support)
volumes:
- name: tmp
emptyDir: {}
# ...
# ...
Passing Arguments to Applications
Some applications only allow certain configurations via command-line arguments rather than environment variables. For such cases, refer to the Kubernetes documentation on defining commands and arguments for a container. Then, specify the desired arguments as shown below:
args:
- --port
- "8080"
Configuration Volume
For applications requiring persistent configuration data, the configuration volume is hardcoded to /config within the container. In most cases, this path cannot be changed.
Verify Image Signature
These container images are signed using the attest-build-provenance action.
To verify that the image was built by GitHub CI, use the following command:
gh attestation verify --repo home-operations/containers oci://ghcr.io/home-operations/${APP}:${TAG}
or by using cosign:
cosign verify-attestation --new-bundle-format --type slsaprovenance1 \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
--certificate-identity-regexp "^https://github.com/home-operations/containers/.github/workflows/app-builder.yaml@refs/heads/main" \
ghcr.io/home-operations/${APP}:${TAG}
Eschewed Features
This repository does not support multiple "channels" for the same application. For example:
- Prowlarr, Radarr, Lidarr, and Sonarr only publish the develop branch, not the master (stable) branch.
- qBittorrent is only published with LibTorrent 2.x. See this issue for more information.
This approach ensures consistency and focuses on streamlined builds.
Contributing
We encourage the use of official upstream container images whenever possible. However, contributing to this repository might make sense if:
- The upstream application is actively maintained.
- And one of the following applies:
- no official image exists.
- the official image does not support multi-architecture builds.
- the official image uses tools like s6-overlay, gosu, or other unconventional initialization mechanisms.
- does not tag releases.
Deprecations
Containers in this repository may be deprecated for the following reasons:
- The upstream application is no longer actively maintained.
- An official upstream container exists that aligns with this repository's mission statement.
- The maintenance burden is unsustainable, such as frequent build failures or instability.
Note: Deprecated containers will be announced with a release and remain available in the registry for 6 months before removal.
Credits
This repository draws inspiration and ideas from the home-ops community, hotio.dev, and linuxserver.io contributors.
探索相关项目
加载中…