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: 10 additions & 11 deletions lesson_3/ex1_solution.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

- Image Size:
- Container Name:
- Container ID:
- Exposed port:
- Postgres version:
- Data Volume (aka PGDATA):
- default entrypoint:
- default command:
- baseline consumption : CPU ___% MEM ___MB
- OS: Distro Version Codename (Ubuntu 22.04 jammy)
- Image Size: 377MB
- Container Name: postgres
Copy link
Owner

Choose a reason for hiding this comment

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

Ollo con nomear o contedor igual que unha imaxe. postgres pode ser interpretado como a imaxe "postgres:latest"

- Container ID: 651d95b481aa
- Exposed port: 5432
- Postgres version: 15.0-1.pgdg110+1
- Data Volume (aka PGDATA): /var/lib/postgresql/data
- default entrypoint: docker-entrypoint.sh
- default command: postgres
- baseline consumption : CPU 0% MEM 31.44MB
- OS: Debian GNU/Linux 11 (bullseye)
7 changes: 6 additions & 1 deletion lesson_3/ex1_solution.sh
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
docker pull
docker pull postgres:latest
docker image ls
docker inspect postgres:latest
docker run -d -e POSTGRES_PASSWORD='password' 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.

sempre recomendo usar nomes para os nosos contedores.

docker exec -it 651d95b481aa bash
cat /etc/os-release
Copy link
Owner

Choose a reason for hiding this comment

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

o comando perfector para a release é cat /etc/*elease*. Hai casos como lsb-release
outro opcion /etc/issue

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 stable-perl df1998569adb 9 days ago 188MB
nginx stable 0ccb2559380c 9 days ago 142MB
nginx stable-alpine-perl 98f7c1f8a3fa 2 weeks ago 58.6MB
nginx stable-alpine ec84f916d1ec 2 weeks ago 23.6MB
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:stable
docker pull nginx:stable-perl
docker pull nginx:stable-alpine
docker pull nginx:stable-alpine-perl
docker image ls