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.md
+95Lines changed: 95 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,24 @@ The container should be run on the same docker network as the service(s) using i
62
62
* To see the versions of the API your Docker daemon and client support, use `docker version` and check the `API version`.
63
63
*[Read the docs](https://docs.docker.com/engine/api/) for the API version you are using for an explanation of all the available endpoints.
64
64
65
+
### Podman / libpod API
66
+
67
+
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.
68
+
69
+
For example, to use [prometheus-podman-exporter](https://github.com/containers/prometheus-podman-exporter), enable:
70
+
71
+
```yaml
72
+
- LIBPOD_CONTAINERS=1
73
+
- LIBPOD_INFO=1
74
+
- LIBPOD_NETWORKS=1
75
+
- LIBPOD_PODS=1
76
+
- LIBPOD_VOLUMES=1
77
+
- LIBPOD_IMAGES=1
78
+
- LIBPOD_EVENTS=1
79
+
```
80
+
81
+
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`).
82
+
65
83
## Read-Only Operation
66
84
67
85
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
@@ -113,6 +131,31 @@ services:
113
131
- TZ=Etc/UTC #optional
114
132
- VERSION=1 #optional
115
133
- VOLUMES=0 #optional
134
+
- LIBPOD_ALLOW_PAUSE=0 #optional
135
+
- LIBPOD_ALLOW_POD_PAUSE=0 #optional
136
+
- LIBPOD_ALLOW_POD_RESTARTS=0 #optional
137
+
- LIBPOD_ALLOW_POD_START=0 #optional
138
+
- LIBPOD_ALLOW_POD_STOP=0 #optional
139
+
- LIBPOD_ALLOW_POD_UNPAUSE=0 #optional
140
+
- LIBPOD_ALLOW_RESTARTS=0 #optional
141
+
- LIBPOD_ALLOW_START=0 #optional
142
+
- LIBPOD_ALLOW_STOP=0 #optional
143
+
- LIBPOD_ALLOW_UNPAUSE=0 #optional
144
+
- LIBPOD_CONTAINERS=0 #optional
145
+
- LIBPOD_EVENTS=0 #optional
146
+
- LIBPOD_EXEC=0 #optional
147
+
- LIBPOD_GENERATE=0 #optional
148
+
- LIBPOD_IMAGES=0 #optional
149
+
- LIBPOD_INFO=0 #optional
150
+
- LIBPOD_MANIFESTS=0 #optional
151
+
- LIBPOD_NETWORKS=0 #optional
152
+
- LIBPOD_PING=1 #optional
153
+
- LIBPOD_PLAY=0 #optional
154
+
- LIBPOD_PODS=0 #optional
155
+
- LIBPOD_SECRETS=0 #optional
156
+
- LIBPOD_SYSTEM=0 #optional
157
+
- LIBPOD_VERSION=1 #optional
158
+
- LIBPOD_VOLUMES=0 #optional
116
159
volumes:
117
160
- /var/run/docker.sock:/var/run/docker.sock:ro
118
161
restart: unless-stopped
@@ -157,6 +200,31 @@ docker run -d \
157
200
-e TZ=Etc/UTC `#optional` \
158
201
-e VERSION=1 `#optional` \
159
202
-e VOLUMES=0 `#optional` \
203
+
-e LIBPOD_ALLOW_PAUSE=0 `#optional` \
204
+
-e LIBPOD_ALLOW_POD_PAUSE=0 `#optional` \
205
+
-e LIBPOD_ALLOW_POD_RESTARTS=0 `#optional` \
206
+
-e LIBPOD_ALLOW_POD_START=0 `#optional` \
207
+
-e LIBPOD_ALLOW_POD_STOP=0 `#optional` \
208
+
-e LIBPOD_ALLOW_POD_UNPAUSE=0 `#optional` \
209
+
-e LIBPOD_ALLOW_RESTARTS=0 `#optional` \
210
+
-e LIBPOD_ALLOW_START=0 `#optional` \
211
+
-e LIBPOD_ALLOW_STOP=0 `#optional` \
212
+
-e LIBPOD_ALLOW_UNPAUSE=0 `#optional` \
213
+
-e LIBPOD_CONTAINERS=0 `#optional` \
214
+
-e LIBPOD_EVENTS=0 `#optional` \
215
+
-e LIBPOD_EXEC=0 `#optional` \
216
+
-e LIBPOD_GENERATE=0 `#optional` \
217
+
-e LIBPOD_IMAGES=0 `#optional` \
218
+
-e LIBPOD_INFO=0 `#optional` \
219
+
-e LIBPOD_MANIFESTS=0 `#optional` \
220
+
-e LIBPOD_NETWORKS=0 `#optional` \
221
+
-e LIBPOD_PING=1 `#optional` \
222
+
-e LIBPOD_PLAY=0 `#optional` \
223
+
-e LIBPOD_PODS=0 `#optional` \
224
+
-e LIBPOD_SECRETS=0 `#optional` \
225
+
-e LIBPOD_SYSTEM=0 `#optional` \
226
+
-e LIBPOD_VERSION=1 `#optional` \
227
+
-e LIBPOD_VOLUMES=0 `#optional` \
160
228
-v /var/run/docker.sock:/var/run/docker.sock:ro \
161
229
--restart unless-stopped \
162
230
--read-only \
@@ -201,6 +269,32 @@ Containers are configured using parameters passed at runtime (such as those abov
201
269
|`-e TZ=Etc/UTC`|`Set container timezone`|
202
270
|`-e VERSION=1`|`/version`|
203
271
|`-e VOLUMES=0`|`/volumes`|
272
+
|**Podman libpod API**||
273
+
|`-e LIBPOD_ALLOW_START=0`|`/libpod/containers/{id}/start` - **This option will work even if `POST=0`**|
274
+
|`-e LIBPOD_ALLOW_STOP=0`|`/libpod/containers/{id}/stop` - **This option will work even if `POST=0`**|
275
+
|`-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`**|
276
+
|`-e LIBPOD_ALLOW_PAUSE=0`|`/libpod/containers/{id}/pause` - **This option will work even if `POST=0`**|
277
+
|`-e LIBPOD_ALLOW_UNPAUSE=0`|`/libpod/containers/{id}/unpause` - **This option will work even if `POST=0`**|
278
+
|`-e LIBPOD_ALLOW_POD_START=0`|`/libpod/pods/{name}/start` - **This option will work even if `POST=0`**|
279
+
|`-e LIBPOD_ALLOW_POD_STOP=0`|`/libpod/pods/{name}/stop` - **This option will work even if `POST=0`**|
280
+
|`-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`**|
281
+
|`-e LIBPOD_ALLOW_POD_PAUSE=0`|`/libpod/pods/{name}/pause` - **This option will work even if `POST=0`**|
282
+
|`-e LIBPOD_ALLOW_POD_UNPAUSE=0`|`/libpod/pods/{name}/unpause` - **This option will work even if `POST=0`**|
0 commit comments