37 lines
359 B
Markdown
37 lines
359 B
Markdown
# Interacting with Containers and Other Docker Objects
|
|
|
|
## Images
|
|
|
|
1) ls
|
|
2) build
|
|
3) tag
|
|
4) pull
|
|
5) push
|
|
6) rm
|
|
7) prune
|
|
8) save
|
|
9) docker scan <image> (snyk security scan, also show trivy)
|
|
|
|
## Containers
|
|
|
|
1) ls
|
|
2) run
|
|
3) start
|
|
4) attach
|
|
5) exec
|
|
6) logs
|
|
7) top
|
|
8) cp
|
|
9) stop
|
|
10) kill
|
|
11) prune
|
|
12) export
|
|
|
|
## Volumes
|
|
|
|
1) ls
|
|
2) create
|
|
3) inspect
|
|
4) rm
|
|
5) prune
|