From f60b5726e0e41ae4ed566c6aa827df7bbc3b6112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Riera?= Date: Sun, 6 Nov 2022 22:44:25 +0100 Subject: [PATCH] Solutions day 3 --- lesson_3/ex1_solution.md | 20 ++++++++++---------- lesson_3/ex1_solution.sh | 6 +++++- lesson_3/ex2_solution.md | 7 +++++-- lesson_3/ex2_solution.sh | 5 ++++- 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/lesson_3/ex1_solution.md b/lesson_3/ex1_solution.md index 87b31a9..0b80a12 100644 --- a/lesson_3/ex1_solution.md +++ b/lesson_3/ex1_solution.md @@ -1,11 +1,11 @@ -- 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: trusting_murdock +- Container ID: 3c8d719dfb2d +- Exposed port: 5432/tcp +- Postgres version: ??????? +- Data Volume (aka PGDATA): "/var/lib/postgresql/data" +- default entrypoint: docker-entrypoint.sh +- default command: "/bin/sh","-c","#(nop) ","CMD [\"postgres\"]" +- baseline consumption : CPU 0.0% MEM 30.21MB +- OS: Distro Version Codename (Ubuntu 22.04 jammy)????? diff --git a/lesson_3/ex1_solution.sh b/lesson_3/ex1_solution.sh index 5433231..5af47a7 100644 --- a/lesson_3/ex1_solution.sh +++ b/lesson_3/ex1_solution.sh @@ -1 +1,5 @@ -docker pull +docker run -e POSTGRES_PASSWORD=1234 postgres:latest +docker ps +docker image ls +docker inspect postgres:latest +docker container stats \ No newline at end of file diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index a4a3a80..d34db88 100644 --- a/lesson_3/ex2_solution.md +++ b/lesson_3/ex2_solution.md @@ -1,2 +1,5 @@ -REPOSITORY TAG IMAGE ID CREATED SIZE -nginx +REPOSITORY TAG IMAGE ID CREATED SIZE +nginx 1.22.1-perl df1998569adb 9 days ago 188MB +nginx 1.22.1 0ccb2559380c 9 days ago 142MB +nginx 1.22.1-alpine-perl 98f7c1f8a3fa 2 weeks ago 58.6MB +nginx 1.22.1-alpine ec84f916d1ec 2 weeks ago 23.6MB diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index b46f0ec..191423c 100644 --- a/lesson_3/ex2_solution.sh +++ b/lesson_3/ex2_solution.sh @@ -1 +1,4 @@ -docker pull \ No newline at end of file +docker pull nginx:1.22.1-perl +docker pull nginx:1.22.1-alpine-perl +docker pull nginx:1.22.1-alpine +docker pull nginx:1.22.1