1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
# Build Docker image
export PFTOOLS_VERSION=3.2.12
docker build -t pftools:$PFTOOLS_VERSION --no-cache=true --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg PFTOOLS_VERSION=$PFTOOLS_VERSION -f Dockerfile . # 2>&1 >pftools.Dockerfile.log
# List Docker local images (imported or built)
docker images
# Inspect images
docker inspect pftools:$PFTOOLS_VERSION
# Scan container vulnerabilities
docker scan --file Dockerfile --exclude-base pftools:$PFTOOLS_VERSION
# Run pfscanV3 in the Docker image
docker run --rm -i -t pftools:$PFTOOLS_VERSION pfscanV3
|