Skip to content

Commit 0bf666a

Browse files
committed
Updating the example code to use /bin/bash as an entrypoint because it works across all tags.
1 parent e8353fc commit 0bf666a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This method scans an image in registry. **Note**: The target image must be prese
4545
docker run -i --rm -u 0:0 --pid=host \
4646
-v /var/run/docker.sock:/var/run/docker.sock \
4747
-v $(pwd)/out:/out \
48-
--entrypoint sh \
48+
--entrypoint /bin/bash \
4949
cgr.dev/chainguard/openscap:latest-dev <<_END_DOCKER_RUN
5050
oscap-docker image cgr.dev/chainguard/wolfi-base:latest xccdf eval \
5151
--profile "xccdf_basic_profile_.check" \
@@ -68,7 +68,7 @@ docker run --name target -d cgr.dev/chainguard/wolfi-base:latest tail -f /dev/nu
6868
docker run -i --rm -u 0:0 --pid=host \
6969
-v /var/run/docker.sock:/var/run/docker.sock \
7070
-v $(pwd)/out:/out \
71-
--entrypoint sh \
71+
--entrypoint /bin/bash \
7272
cgr.dev/chainguard/openscap:latest-dev <<_END_DOCKER_RUN
7373
oscap-docker container target xccdf eval \
7474
--profile "xccdf_basic_profile_.check" \

0 commit comments

Comments
 (0)