From 65a2342a26ec6e2bd76fceecbee6ada94a9600bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20S=C3=A1nchez?= Date: Thu, 3 Nov 2022 20:35:13 +0100 Subject: [PATCH 1/6] Update ex1_solution.sh --- lesson_3/ex1_solution.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lesson_3/ex1_solution.sh b/lesson_3/ex1_solution.sh index 5433231..ed6ed60 100644 --- a/lesson_3/ex1_solution.sh +++ b/lesson_3/ex1_solution.sh @@ -1 +1,15 @@ -docker pull +docker pull postgres:latest +docker image ls postgres +docker run -it -e POSTGRES_HOST_AUTH_METHOD=trust --entrypoint /bin/bash postgres + +docker ps +docker image inspect postgres:latest + +#Dentro del contenedor: + +postgres --version + +# Para ver los recursos + +docker container stats festive_heisenberg + From e4d4c787a71a2dfe7836cbe7cc558586feda35bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20S=C3=A1nchez?= Date: Thu, 3 Nov 2022 20:36:07 +0100 Subject: [PATCH 2/6] Update ex1_solution.md --- lesson_3/ex1_solution.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lesson_3/ex1_solution.md b/lesson_3/ex1_solution.md index 87b31a9..78a7322 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: festive_heisenberg +- Container ID: a09e501aa7d9 +- Exposed port: 5432 +- Postgres version: 15.0 +- 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.00% MEM 940KiB +- OS: Debian 15.0-1.pgdg110+1 From 5467141e77e60d76d8134573ea28bab0d30655da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20S=C3=A1nchez?= Date: Thu, 3 Nov 2022 20:47:20 +0100 Subject: [PATCH 3/6] Update ex2_solution.md --- lesson_3/ex2_solution.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index a4a3a80..f9e6408 100644 --- a/lesson_3/ex2_solution.md +++ b/lesson_3/ex2_solution.md @@ -1,2 +1,4 @@ -REPOSITORY TAG IMAGE ID CREATED SIZE -nginx +REPOSITORY TAG IMAGE ID CREATED SIZE +nginx 1.22 0ccb2559380c 9 days ago 142MB +nginx 1.22.1 0ccb2559380c 9 days ago 142MB +nginx stable 0ccb2559380c 9 days ago 142MB From 65ce47935269891f4b2f8ce735d2420100868451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20S=C3=A1nchez?= Date: Thu, 3 Nov 2022 20:47:37 +0100 Subject: [PATCH 4/6] Update ex2_solution.md --- lesson_3/ex2_solution.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index f9e6408..cc7a732 100644 --- a/lesson_3/ex2_solution.md +++ b/lesson_3/ex2_solution.md @@ -1,4 +1,8 @@ REPOSITORY TAG IMAGE ID CREATED SIZE + nginx 1.22 0ccb2559380c 9 days ago 142MB + nginx 1.22.1 0ccb2559380c 9 days ago 142MB + nginx stable 0ccb2559380c 9 days ago 142MB + From c5fe4117b708cc9b772b2c7f49748e2e2c36d1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20S=C3=A1nchez?= Date: Thu, 3 Nov 2022 20:50:01 +0100 Subject: [PATCH 5/6] Update ex2_solution.sh --- lesson_3/ex2_solution.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index b46f0ec..91c152c 100644 --- a/lesson_3/ex2_solution.sh +++ b/lesson_3/ex2_solution.sh @@ -1 +1,3 @@ -docker pull \ No newline at end of file +docker image pull nginx:1.22.1 +docker image pull nginx:stable +docker image pull nginx:1.22 From e1f056238b972342cdf290bb8f7d8cd530b8ed67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20S=C3=A1nchez?= Date: Thu, 3 Nov 2022 20:50:26 +0100 Subject: [PATCH 6/6] Update ex2_solution.sh --- lesson_3/ex2_solution.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index 91c152c..ce67f0f 100644 --- a/lesson_3/ex2_solution.sh +++ b/lesson_3/ex2_solution.sh @@ -1,3 +1,4 @@ docker image pull nginx:1.22.1 docker image pull nginx:stable docker image pull nginx:1.22 +docker image ls nginx