Open
Conversation
hectorcanto
approved these changes
Nov 9, 2022
Owner
hectorcanto
left a comment
There was a problem hiding this comment.
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 |
Owner
There was a problem hiding this comment.
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", |
| "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 |
Owner
There was a problem hiding this comment.
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)" |
Owner
There was a problem hiding this comment.
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 |
| 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 |
Owner
There was a problem hiding this comment.
podes lanzar o comando directamente con exec:
docker exec -it cat /etc/os-release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.