diff --git a/lesson_3/ex1_solution.md b/lesson_3/ex1_solution.md index 87b31a9..3b00082 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 +- Image Size: 377MB +- Container Name: some-postgres +- Container ID: 021d486917aa +- Exposed port: 5432/tcp +- 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.00% MEM 31.37MiB - OS: Distro Version Codename (Ubuntu 22.04 jammy) diff --git a/lesson_3/ex1_solution.sh b/lesson_3/ex1_solution.sh index 5433231..04a5597 100644 --- a/lesson_3/ex1_solution.sh +++ b/lesson_3/ex1_solution.sh @@ -1 +1,5 @@ -docker pull +docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres +docker ps -h +docker inspect postgress +docker images postgres +docker stats some-postgress diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index a4a3a80..ae17f84 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 10 days ago 188MB +nginx 1.22.1 0ccb2559380c 10 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