Untitled Flashcards Set

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Podman pull command

podman pull

2
New cards

Docker run command

docker run

3
New cards

List all running containers in Podman

podman container ls

4
New cards

List all containers (including stopped) in Docker

docker container ls -a

5
New cards

View all downloaded images in Podman

podman image ls

6
New cards

Create a MySQL container in Podman

podman run --name mysql -d -p 3306:3306 -e MYSQLROOTPASSWORD=root-pwd -e MYSQLROOTHOST="%" -e MYSQLDATABASE=mydb -e MYSQLUSER=remoteuser -e MYSQLPASSWORD=remote_user-pwd docker.io/library/mysql:8.4.4

7
New cards

Meaning of -d in Podman run command

Detached mode (runs in the background).

8
New cards

Log in to a running MySQL container in Podman

podman exec -it mysql bash

9
New cards

Preserve MySQL data in a volume

Add -v ./data:/var/lib/mysql when running the container.

10
New cards

SQL command to create 'friendstvshow' database

CREATE DATABASE IF NOT EXISTS friendstvshow;

11
New cards

Contents of the 'characters' table

Character ID, First Name, Last Name, Actor Name, Date of Birth, Occupation, Apartment Number.

12
New cards

Build a Docker image using Podman

podman build -t /: .

13
New cards

Tag an image for Docker Hub

podman image tag /:latest

14
New cards

Push a tagged image to Docker Hub

podman push /:1.0 and podman push /:latest.

15
New cards

Log into Docker Hub using Podman

podman login docker.io

16
New cards

Tool to scan Docker images for vulnerabilities

Trivy

17
New cards

Trivy command for scanning high/critical vulnerabilities

trivy image --severity CRITICAL,HIGH --format table

18
New cards

Save a Trivy scan result to a file

trivy image --severity CRITICAL,HIGH --output result.txt.