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 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 + diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index a4a3a80..cc7a732 100644 --- a/lesson_3/ex2_solution.md +++ b/lesson_3/ex2_solution.md @@ -1,2 +1,8 @@ -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 + diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index b46f0ec..ce67f0f 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 image pull nginx:1.22.1 +docker image pull nginx:stable +docker image pull nginx:1.22 +docker image ls nginx