Skip to content

Comments

Exercises_lesson3#11

Open
pablo-tomaz wants to merge 2 commits intohectorcanto:mainfrom
pablo-tomaz:pablo_lesson3
Open

Exercises_lesson3#11
pablo-tomaz wants to merge 2 commits intohectorcanto:mainfrom
pablo-tomaz:pablo_lesson3

Conversation

@pablo-tomaz
Copy link

No description provided.

@pablo-tomaz pablo-tomaz changed the title Exercice1 Exercices_lesson3 Nov 7, 2022
@pablo-tomaz pablo-tomaz changed the title Exercices_lesson3 Exercises_lesson3 Nov 7, 2022
Copy link
Owner

@hectorcanto hectorcanto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo a información conseguida, bo traballo.

- baseline consumption : CPU ___% MEM ___MB
- OS: Distro Version Codename (Ubuntu 22.04 jammy)
- Image Size: 377MB
- Container Name: adoring_mclean
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recomendación: nomear sempre os nosos contedores

- Container ID: b9b60d8b11e8
- Exposed port: "5432/tcp": {}
- Postgres version: "GOSU_VERSION=1.14",
"PG_VERSION=15.0-1.pgdg110+1",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chegaba co PG_VERSION

"GOSU_VERSION=1.14",
"PG_VERSION=15.0-1.pgdg110+1",
- Data Volume (aka PGDATA): "PGDATA=/var/lib/postgresql/data"
- default entrypoint: .[0].Config.Entrypoint.docker-entrypoint.sh
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chega cos comandos finais: docker-entrypoint.sh e postgres

"Cmd": [
"postgres"
- baseline consumption : CPU ___% MEM ___MB 0.00% 31.63MiB / 12.33GiB 0.25%
- OS: Distro Version Codename (Ubuntu 22.04 jammy):PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a primeira version (ubuntu 22) é probablemente a do anfitrión. Buscábase a do contedor, que é a segunda que puxeches

docker run -d -e POSTGRES_PASSWORD=password postgres:latest
docker ps
docker ps
docker inspect postgres:latest | jq .[0].Config.ExposedPorts
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bo traballo con JQ

docker inspect postgres:latest | jq | grep "VERSION"
docker inspect postgres:latest | jq .[0].Config.Entrypoint.docker-entrypoint.sh
docker stats
docker exec -it b9b60d8b11e8 bash, cat /etc/os-release No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podes lanzar o comando directamente con exec:
docker exec -it cat /etc/os-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants