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: docs/docs/target/container_image.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -272,7 +272,7 @@ $ trivy image aquasec/nginx
272
272
This feature might change without preserving backwards compatibility.
273
273
274
274
Scan your image in Podman (>=2.0) running locally. The remote Podman is not supported.
275
-
Before performing Trivy commands, you must enable the podman.sock systemd service on your machine.
275
+
If you prefer to keep the socket open at all times, then before performing Trivy commands, you can enable the podman.sock systemd service on your machine.
276
276
For more details, see [here](https://github.com/containers/podman/blob/master/docs/tutorials/remote_client.md#enable-the-podman-service-on-the-server-machine).
277
277
278
278
@@ -293,6 +293,15 @@ localhost/test latest efc372d4e0de About a minute ago 7.94 MB
293
293
$ trivy image test
294
294
```
295
295
296
+
If you prefer not to keep the socket open at all times, but to limit the socket opening for your trivy scanning duration only then you can scan your image with the following command:
297
+
298
+
```bash
299
+
podman system service --time=0 "${TMP_PODMAN_SOCKET}"&
0 commit comments