Skip to content

Comments

Solutions day 3#10

Open
raul-riera-imatia wants to merge 1 commit intohectorcanto:mainfrom
raul-riera-imatia:solutions
Open

Solutions day 3#10
raul-riera-imatia wants to merge 1 commit intohectorcanto:mainfrom
raul-riera-imatia:solutions

Conversation

@raul-riera-imatia
Copy link

No description provided.

@raul-riera-imatia
Copy link
Author

Solutions

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.

Aparte dos ?????, o resto ben
Proba as suxestións e recorda as recomendacións.

- Container Name: trusting_murdock
- Container ID: 3c8d719dfb2d
- Exposed port: 5432/tcp
- Postgres version: ???????
Copy link
Owner

Choose a reason for hiding this comment

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

podes conseguilo de varios xeitos.

  • A través de postgres, entras no container e lanzas postgres -V
  • inspeccionando: docker inspect trusting_murdock | grep PG

- Postgres version: ???????
- Data Volume (aka PGDATA): "/var/lib/postgresql/data"
- default entrypoint: docker-entrypoint.sh
- default command: "/bin/sh","-c","#(nop) ","CMD [\"postgres\"]"
Copy link
Owner

Choose a reason for hiding this comment

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

Suficiente con postgres. O que puxeches é a liña da historia completa

- default entrypoint: docker-entrypoint.sh
- default command: "/bin/sh","-c","#(nop) ","CMD [\"postgres\"]"
- baseline consumption : CPU 0.0% MEM 30.21MB
- OS: Distro Version Codename (Ubuntu 22.04 jammy)?????
Copy link
Owner

Choose a reason for hiding this comment

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

Necesitas entrar no contedor e mirar algo como:

  • cat /etc/lsb-release
  • cat /etc/os-release
  • cat /etc/issue

Cal é a boa dependerá da distro. como opción xeral: cat /etc/*elease*, esta caza case todas

@@ -1 +1,5 @@
docker pull
docker run -e POSTGRES_PASSWORD=1234 postgres:latest
Copy link
Owner

Choose a reason for hiding this comment

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

Moi recomendable nomear o contedor. En contedores coma este, que siguen vivos despois de lanzalos, o recomendable é lanzalos en modo "detached" e interactivo: docker run -itd ...

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.

2 participants