From a73f853252f1466b61a4ef7b5914d90a94d0cb44 Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 20:57:43 +0100 Subject: [PATCH 1/7] Update ex1_solution.md execise 1 data --- lesson_3/ex1_solution.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lesson_3/ex1_solution.md b/lesson_3/ex1_solution.md index 87b31a9..ecc0410 100644 --- a/lesson_3/ex1_solution.md +++ b/lesson_3/ex1_solution.md @@ -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** +- 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", + "-c", + "#(nop) ", + "CMD [\"postgres\"]"** +- baseline consumption : CPU **0.03**% MEM **30.9**MB - OS: Distro Version Codename (Ubuntu 22.04 jammy) From 60eaccbe12b49af6897cb9891b4aa50e47dd81c8 Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 20:57:54 +0100 Subject: [PATCH 2/7] Update ex1_solution.sh exercise 1 commands --- lesson_3/ex1_solution.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lesson_3/ex1_solution.sh b/lesson_3/ex1_solution.sh index 5433231..870657e 100644 --- a/lesson_3/ex1_solution.sh +++ b/lesson_3/ex1_solution.sh @@ -1 +1,7 @@ docker pull +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 +docker inspect --format="{{json .Config.Env }}" postgres:latest +docker stats naughty_faraday From b2ee532f6ac31d2975318b2544a2ba543e35963a Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:02:02 +0100 Subject: [PATCH 3/7] Update ex1_solution.sh --- lesson_3/ex1_solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesson_3/ex1_solution.sh b/lesson_3/ex1_solution.sh index 870657e..940bb53 100644 --- a/lesson_3/ex1_solution.sh +++ b/lesson_3/ex1_solution.sh @@ -1,4 +1,4 @@ -docker pull +docker pull postgres:latest docker run -d -e POSTGRES_PASSWORD=abc123. postgres:latest docker image ls postgres:latest docker ps -a From 1329bfd1a5756704e6b3cbd41bef574265603f1e Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:05:31 +0100 Subject: [PATCH 4/7] Update ex2_solution.md nginx first image --- lesson_3/ex2_solution.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index a4a3a80..ecfb6a5 100644 --- a/lesson_3/ex2_solution.md +++ b/lesson_3/ex2_solution.md @@ -1,2 +1,2 @@ -REPOSITORY TAG IMAGE ID CREATED SIZE -nginx +REPOSITORY TAG IMAGE ID CREATED SIZE +nginx **1.21.1-perl** **9f499607fd42** **14 months ago** **179MB** From 32f621ed1887b1618720b3b9755fac7627e2c89c Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:05:45 +0100 Subject: [PATCH 5/7] Update ex2_solution.sh nginx first image command --- lesson_3/ex2_solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index b46f0ec..8f1a266 100644 --- a/lesson_3/ex2_solution.sh +++ b/lesson_3/ex2_solution.sh @@ -1 +1 @@ -docker pull \ No newline at end of file +docker pull nginx:1.21.1-perl From bc5ee43cda88e4f44ad1c414bedb687a8db6b69d Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:10:29 +0100 Subject: [PATCH 6/7] Update ex2_solution.md other images information --- lesson_3/ex2_solution.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index ecfb6a5..3b90a90 100644 --- a/lesson_3/ex2_solution.md +++ b/lesson_3/ex2_solution.md @@ -1,2 +1,5 @@ -REPOSITORY TAG IMAGE ID CREATED SIZE -nginx **1.21.1-perl** **9f499607fd42** **14 months ago** **179MB** +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** From 2f9e2e59b644f9778f79b69fdf20025f53996da5 Mon Sep 17 00:00:00 2001 From: cesarsantiagonunez <86664126+cesarsantiagonunez@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:10:35 +0100 Subject: [PATCH 7/7] Update ex2_solution.sh all commands --- lesson_3/ex2_solution.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index 8f1a266..8748b1f 100644 --- a/lesson_3/ex2_solution.sh +++ b/lesson_3/ex2_solution.sh @@ -1 +1,5 @@ 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