diff --git a/lesson_3/ex1_solution.md b/lesson_3/ex1_solution.md index 87b31a9..b898ad9 100644 --- a/lesson_3/ex1_solution.md +++ b/lesson_3/ex1_solution.md @@ -1,11 +1,10 @@ - -- 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: postgres +- Container ID: 651d95b481aa +- Exposed port: 5432 +- 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% MEM 31.44MB +- OS: Debian GNU/Linux 11 (bullseye) diff --git a/lesson_3/ex1_solution.sh b/lesson_3/ex1_solution.sh index 5433231..ddc826c 100644 --- a/lesson_3/ex1_solution.sh +++ b/lesson_3/ex1_solution.sh @@ -1 +1,6 @@ -docker pull +docker pull postgres:latest +docker image ls +docker inspect postgres:latest +docker run -d -e POSTGRES_PASSWORD='password' postgres:latest +docker exec -it 651d95b481aa bash +cat /etc/os-release \ No newline at end of file diff --git a/lesson_3/ex2_solution.md b/lesson_3/ex2_solution.md index a4a3a80..9ed5b93 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 stable-perl df1998569adb 9 days ago 188MB +nginx stable 0ccb2559380c 9 days ago 142MB +nginx stable-alpine-perl 98f7c1f8a3fa 2 weeks ago 58.6MB +nginx stable-alpine ec84f916d1ec 2 weeks ago 23.6MB diff --git a/lesson_3/ex2_solution.sh b/lesson_3/ex2_solution.sh index b46f0ec..c248728 100644 --- a/lesson_3/ex2_solution.sh +++ b/lesson_3/ex2_solution.sh @@ -1 +1,5 @@ -docker pull \ No newline at end of file +docker pull nginx:stable +docker pull nginx:stable-perl +docker pull nginx:stable-alpine +docker pull nginx:stable-alpine-perl +docker image ls \ No newline at end of file