You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme-vars.yml
+95Lines changed: 95 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,24 @@ full_custom_readme: |
69
69
* To see the versions of the API your Docker daemon and client support, use `docker version` and check the `API version`.
70
70
* [Read the docs](https://docs.docker.com/engine/api/) for the API version you are using for an explanation of all the available endpoints.
71
71
72
+
### Podman / libpod API
73
+
74
+
Podman exposes two API groups on the same socket: the Docker-compatible API (controlled by the existing env vars above) and the libpod-native API prefixed with `/libpod/`. The `LIBPOD_*` environment variables control access to the libpod endpoints independently of their Docker-compat equivalents.
75
+
76
+
For example, to use [prometheus-podman-exporter](https://github.com/containers/prometheus-podman-exporter), enable:
77
+
78
+
```yaml
79
+
- LIBPOD_CONTAINERS=1
80
+
- LIBPOD_INFO=1
81
+
- LIBPOD_NETWORKS=1
82
+
- LIBPOD_PODS=1
83
+
- LIBPOD_VOLUMES=1
84
+
- LIBPOD_IMAGES=1
85
+
- LIBPOD_EVENTS=1
86
+
```
87
+
88
+
Point the exporter at `tcp://socket-proxy:2375` using `CONTAINER_HOST`. `LIBPOD_PING` and `LIBPOD_VERSION` are enabled by default (like their Docker-compat counterparts `PING` and `VERSION`).
89
+
72
90
## Read-Only Operation
73
91
74
92
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
@@ -120,6 +138,31 @@ full_custom_readme: |
120
138
- TZ=Etc/UTC #optional
121
139
- VERSION=1 #optional
122
140
- VOLUMES=0 #optional
141
+
- LIBPOD_ALLOW_PAUSE=0 #optional
142
+
- LIBPOD_ALLOW_POD_PAUSE=0 #optional
143
+
- LIBPOD_ALLOW_POD_RESTARTS=0 #optional
144
+
- LIBPOD_ALLOW_POD_START=0 #optional
145
+
- LIBPOD_ALLOW_POD_STOP=0 #optional
146
+
- LIBPOD_ALLOW_POD_UNPAUSE=0 #optional
147
+
- LIBPOD_ALLOW_RESTARTS=0 #optional
148
+
- LIBPOD_ALLOW_START=0 #optional
149
+
- LIBPOD_ALLOW_STOP=0 #optional
150
+
- LIBPOD_ALLOW_UNPAUSE=0 #optional
151
+
- LIBPOD_CONTAINERS=0 #optional
152
+
- LIBPOD_EVENTS=0 #optional
153
+
- LIBPOD_EXEC=0 #optional
154
+
- LIBPOD_GENERATE=0 #optional
155
+
- LIBPOD_IMAGES=0 #optional
156
+
- LIBPOD_INFO=0 #optional
157
+
- LIBPOD_MANIFESTS=0 #optional
158
+
- LIBPOD_NETWORKS=0 #optional
159
+
- LIBPOD_PING=1 #optional
160
+
- LIBPOD_PLAY=0 #optional
161
+
- LIBPOD_PODS=0 #optional
162
+
- LIBPOD_SECRETS=0 #optional
163
+
- LIBPOD_SYSTEM=0 #optional
164
+
- LIBPOD_VERSION=1 #optional
165
+
- LIBPOD_VOLUMES=0 #optional
123
166
volumes:
124
167
- /var/run/docker.sock:/var/run/docker.sock:ro
125
168
restart: unless-stopped
@@ -164,6 +207,31 @@ full_custom_readme: |
164
207
-e TZ=Etc/UTC `#optional` \
165
208
-e VERSION=1 `#optional` \
166
209
-e VOLUMES=0 `#optional` \
210
+
-e LIBPOD_ALLOW_PAUSE=0 `#optional` \
211
+
-e LIBPOD_ALLOW_POD_PAUSE=0 `#optional` \
212
+
-e LIBPOD_ALLOW_POD_RESTARTS=0 `#optional` \
213
+
-e LIBPOD_ALLOW_POD_START=0 `#optional` \
214
+
-e LIBPOD_ALLOW_POD_STOP=0 `#optional` \
215
+
-e LIBPOD_ALLOW_POD_UNPAUSE=0 `#optional` \
216
+
-e LIBPOD_ALLOW_RESTARTS=0 `#optional` \
217
+
-e LIBPOD_ALLOW_START=0 `#optional` \
218
+
-e LIBPOD_ALLOW_STOP=0 `#optional` \
219
+
-e LIBPOD_ALLOW_UNPAUSE=0 `#optional` \
220
+
-e LIBPOD_CONTAINERS=0 `#optional` \
221
+
-e LIBPOD_EVENTS=0 `#optional` \
222
+
-e LIBPOD_EXEC=0 `#optional` \
223
+
-e LIBPOD_GENERATE=0 `#optional` \
224
+
-e LIBPOD_IMAGES=0 `#optional` \
225
+
-e LIBPOD_INFO=0 `#optional` \
226
+
-e LIBPOD_MANIFESTS=0 `#optional` \
227
+
-e LIBPOD_NETWORKS=0 `#optional` \
228
+
-e LIBPOD_PING=1 `#optional` \
229
+
-e LIBPOD_PLAY=0 `#optional` \
230
+
-e LIBPOD_PODS=0 `#optional` \
231
+
-e LIBPOD_SECRETS=0 `#optional` \
232
+
-e LIBPOD_SYSTEM=0 `#optional` \
233
+
-e LIBPOD_VERSION=1 `#optional` \
234
+
-e LIBPOD_VOLUMES=0 `#optional` \
167
235
-v /var/run/docker.sock:/var/run/docker.sock:ro \
168
236
--restart unless-stopped \
169
237
--read-only \
@@ -208,6 +276,32 @@ full_custom_readme: |
208
276
| `-e TZ=Etc/UTC` | `Set container timezone` |
209
277
| `-e VERSION=1` | `/version` |
210
278
| `-e VOLUMES=0` | `/volumes` |
279
+
| **Podman libpod API** | |
280
+
| `-e LIBPOD_ALLOW_START=0` | `/libpod/containers/{id}/start` - **This option will work even if `POST=0`** |
281
+
| `-e LIBPOD_ALLOW_STOP=0` | `/libpod/containers/{id}/stop` - **This option will work even if `POST=0`** |
282
+
| `-e LIBPOD_ALLOW_RESTARTS=0` | `/libpod/containers/{id}/stop`, `/libpod/containers/{id}/restart`, and `/libpod/containers/{id}/kill` - **This option will work even if `POST=0`** |
283
+
| `-e LIBPOD_ALLOW_PAUSE=0` | `/libpod/containers/{id}/pause` - **This option will work even if `POST=0`** |
284
+
| `-e LIBPOD_ALLOW_UNPAUSE=0` | `/libpod/containers/{id}/unpause` - **This option will work even if `POST=0`** |
285
+
| `-e LIBPOD_ALLOW_POD_START=0` | `/libpod/pods/{name}/start` - **This option will work even if `POST=0`** |
286
+
| `-e LIBPOD_ALLOW_POD_STOP=0` | `/libpod/pods/{name}/stop` - **This option will work even if `POST=0`** |
287
+
| `-e LIBPOD_ALLOW_POD_RESTARTS=0` | `/libpod/pods/{name}/stop`, `/libpod/pods/{name}/restart`, and `/libpod/pods/{name}/kill` - **This option will work even if `POST=0`** |
288
+
| `-e LIBPOD_ALLOW_POD_PAUSE=0` | `/libpod/pods/{name}/pause` - **This option will work even if `POST=0`** |
289
+
| `-e LIBPOD_ALLOW_POD_UNPAUSE=0` | `/libpod/pods/{name}/unpause` - **This option will work even if `POST=0`** |
0 commit comments