-
Notifications
You must be signed in to change notification settings - Fork 12
Solutions day 3 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Solutions day 3 #10
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
| - OS: Distro Version Codename (Ubuntu 22.04 jammy) | ||
| - Image Size: 377MB | ||
| - Container Name: trusting_murdock | ||
| - Container ID: 3c8d719dfb2d | ||
| - Exposed port: 5432/tcp | ||
| - Postgres version: ??????? | ||
| - Data Volume (aka PGDATA): "/var/lib/postgresql/data" | ||
| - default entrypoint: docker-entrypoint.sh | ||
| - default command: "/bin/sh","-c","#(nop) ","CMD [\"postgres\"]" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suficiente con |
||
| - baseline consumption : CPU 0.0% MEM 30.21MB | ||
| - OS: Distro Version Codename (Ubuntu 22.04 jammy)????? | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Necesitas entrar no contedor e mirar algo como:
Cal é a boa dependerá da distro. como opción xeral: |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| docker pull | ||
| docker run -e POSTGRES_PASSWORD=1234 postgres:latest | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ps | ||
| docker image ls | ||
| docker inspect postgres:latest | ||
| docker container stats | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| REPOSITORY TAG IMAGE ID CREATED SIZE | ||
| nginx | ||
| REPOSITORY TAG IMAGE ID CREATED SIZE | ||
| nginx 1.22.1-perl df1998569adb 9 days ago 188MB | ||
| nginx 1.22.1 0ccb2559380c 9 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| docker pull | ||
| 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 |
There was a problem hiding this comment.
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.
postgres -Vdocker inspect trusting_murdock | grep PG