mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-04-01 14:45:33 +00:00
chore: update content and add generated PDF
This commit is contained in:
@@ -64,12 +64,12 @@ $ docker run --rm -it \
|
||||
|
||||
```bash
|
||||
## 如果使用本地命令行扫描容器镜像
|
||||
$ trivy image alpine:3.10
|
||||
$ trivy image alpine:3.20
|
||||
|
||||
2024-03-01T10:05:07.124Z INFO Number of language-specific files: 1
|
||||
2024-03-01T10:05:07.124Z INFO Detecting vulnerabilities...
|
||||
|
||||
alpine:3.10 (alpine 3.10.3)
|
||||
alpine:3.20 (alpine 3.10.3)
|
||||
===========================
|
||||
Total: 2 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 1, CRITICAL: 0)
|
||||
|
||||
|
||||
@@ -301,7 +301,7 @@ RUN apt-get update && apt-get install -y curl=7.68.0-1ubuntu1
|
||||
在 Dockerfile 中集成安全扫描:
|
||||
|
||||
```dockerfile
|
||||
FROM golang:1.20-alpine AS builder
|
||||
FROM golang:1.26-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user