Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions lesson_3/ex1_solution.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

- Image Size:
- Container Name:
- Container ID:
- Exposed port:
- Postgres version:
- Data Volume (aka PGDATA):
- default entrypoint:
- default command:
- baseline consumption : CPU ___% MEM ___MB
- Image Size: **377MB**
- Container Name: **naughty_faraday**
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podías ter nomeado o contedor

- Container ID: **4a5567f999e8ed59f8d38559d1e1f3a937181dcf89253645cd4292144663c561**
- Exposed port: **{"5432/tcp":{}}**
- Postgres version: **15.0-1.pgdg110+1**
- Data Volume (aka PGDATA): **PGDATA=/var/lib/postgresql/data**
- default entrypoint: **docker-entrypoint.sh**
- default command: **"/bin/sh",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

é suficiente con postgres, pero ben

"-c",
"#(nop) ",
"CMD [\"postgres\"]"**
- baseline consumption : CPU **0.03**% MEM **30.9**MB
- OS: Distro Version Codename (Ubuntu 22.04 jammy)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

necesitas entrar no contedor
docker exec -it naughty_faraday /bin/bash
more /etc/issue

8 changes: 7 additions & 1 deletion lesson_3/ex1_solution.sh
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
docker pull
docker pull postgres:latest
docker run -d -e POSTGRES_PASSWORD=abc123. postgres:latest
docker image ls postgres:latest
docker ps -a
docker inspect --format="{{json .Config.ExposedPorts }}" postgres:latest
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moi ben o experimento co formato

docker inspect --format="{{json .Config.Env }}" postgres:latest
docker stats naughty_faraday
7 changes: 5 additions & 2 deletions lesson_3/ex2_solution.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx **1.21.1-perl** **9f499607fd42** **14 months ago** **179MB**
nginx **1.21.1** **822b7ec2aaf2** **14 months ago** **133MB**
nginx **1.21.1-alpine-perl** **acb9302c18eb** **14 months ago** **57.5MB**
nginx **1.21.1-alpine** **1318bf5f63b4** **14 months ago** **22.8MB**
6 changes: 5 additions & 1 deletion lesson_3/ex2_solution.sh
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
docker pull
docker pull nginx:1.21.1-perl
docker pull nginx:1.21.1
docker pull nginx:1.21.1-alpine-perl
docker pull nginx:1.21.1-alpine
docker image ls nginx